Class Message
java.lang.Object
com.amazonaws.services.simpleemail.model.Message
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the message to be sent, composed of a subject and a body.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getBody()
The message body.The subject of the message: A short summary of the content, which will appear in the recipient's inbox.int
hashCode()
void
The message body.void
setSubject
(Content subject) The subject of the message: A short summary of the content, which will appear in the recipient's inbox.toString()
Returns a string representation of this object; useful for testing and debugging.The message body.withSubject
(Content subject) The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
-
Constructor Details
-
Message
public Message()Default constructor for Message object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Message
Constructs a new Message object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
subject
- The subject of the message: A short summary of the content, which will appear in the recipient's inbox.body
- The message body.
-
-
Method Details
-
setSubject
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
- Parameters:
subject
- The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
-
getSubject
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
- Returns:
- The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
-
withSubject
The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
- Parameters:
subject
- The subject of the message: A short summary of the content, which will appear in the recipient's inbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBody
The message body.
- Parameters:
body
- The message body.
-
getBody
The message body.
- Returns:
- The message body.
-
withBody
The message body.
- Parameters:
body
- The message body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-