@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Message extends Object implements Serializable, Cloneable, StructuredPojo
Represents the email message that you're sending. The Message
object consists of a subject line and a
message body.
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
Message |
clone() |
boolean |
equals(Object obj) |
Body |
getBody()
The body of the message.
|
Content |
getSubject()
The subject line of the email.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(Body body)
The body of the message.
|
void |
setSubject(Content subject)
The subject line of the email.
|
String |
toString()
Returns a string representation of this object.
|
Message |
withBody(Body body)
The body of the message.
|
Message |
withSubject(Content subject)
The subject line of the email.
|
public void setSubject(Content subject)
The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
subject
- The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can
specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.public Content getSubject()
The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
public Message withSubject(Content subject)
The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.
subject
- The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can
specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.public void setBody(Body body)
The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
body
- The body of the message. You can specify an HTML version of the message, a text-only version of the
message, or both.public Body getBody()
The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
public Message withBody(Body body)
The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
body
- The body of the message. You can specify an HTML version of the message, a text-only version of the
message, or both.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.