@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Body extends Object implements Serializable, Cloneable, StructuredPojo
Represents the body of the email message.
Constructor and Description |
---|
Body() |
Modifier and Type | Method and Description |
---|---|
Body |
clone() |
boolean |
equals(Object obj) |
Content |
getHtml()
An object that represents the version of the message that is displayed in email clients that support HTML.
|
Content |
getText()
An object that represents the version of the message that is displayed in email clients that don't support HTML,
or clients where the recipient has disabled HTML rendering.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHtml(Content html)
An object that represents the version of the message that is displayed in email clients that support HTML.
|
void |
setText(Content text)
An object that represents the version of the message that is displayed in email clients that don't support HTML,
or clients where the recipient has disabled HTML rendering.
|
String |
toString()
Returns a string representation of this object.
|
Body |
withHtml(Content html)
An object that represents the version of the message that is displayed in email clients that support HTML.
|
Body |
withText(Content text)
An object that represents the version of the message that is displayed in email clients that don't support HTML,
or clients where the recipient has disabled HTML rendering.
|
public void setText(Content text)
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
text
- An object that represents the version of the message that is displayed in email clients that don't support
HTML, or clients where the recipient has disabled HTML rendering.public Content getText()
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
public Body withText(Content text)
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
text
- An object that represents the version of the message that is displayed in email clients that don't support
HTML, or clients where the recipient has disabled HTML rendering.public void setHtml(Content html)
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
html
- An object that represents the version of the message that is displayed in email clients that support HTML.
HTML messages can include formatted text, hyperlinks, images, and more.public Content getHtml()
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
public Body withHtml(Content html)
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
html
- An object that represents the version of the message that is displayed in email clients that support HTML.
HTML messages can include formatted text, hyperlinks, images, and more.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.