@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable
Represents the message to be sent, composed of a subject and a body.
Constructor and Description |
---|
Message()
Default constructor for Message object.
|
Message(Content subject,
Body body)
Constructs a new Message object.
|
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
boolean |
equals(Object obj) |
Body |
getBody()
The message body.
|
Content |
getSubject()
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
|
int |
hashCode() |
void |
setBody(Body body)
The message body.
|
void |
setSubject(Content subject)
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
|
String |
toString()
Returns a string representation of this object.
|
Message |
withBody(Body body)
The message body.
|
Message |
withSubject(Content subject)
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
|
public Message()
public Message(Content subject, Body body)
subject
- The subject of the message: A short summary of the content, which appears in the recipient's inbox.body
- The message body.public void setSubject(Content subject)
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
subject
- The subject of the message: A short summary of the content, which appears in the recipient's inbox.public Content getSubject()
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
public Message withSubject(Content subject)
The subject of the message: A short summary of the content, which appears in the recipient's inbox.
subject
- The subject of the message: A short summary of the content, which appears in the recipient's inbox.public void setBody(Body body)
The message body.
body
- The message body.public Body getBody()
The message body.
public Message withBody(Body body)
The message body.
body
- The message body.public String toString()
toString
in class Object
Object.toString()