@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EmailTemplateContent extends Object implements Serializable, Cloneable, StructuredPojo
The content of the email, composed of a subject line, an HTML part, and a text-only part.
Constructor and Description |
---|
EmailTemplateContent() |
Modifier and Type | Method and Description |
---|---|
EmailTemplateContent |
clone() |
boolean |
equals(Object obj) |
String |
getHtml()
The HTML body of the email.
|
String |
getSubject()
The subject line of the email.
|
String |
getText()
The email body that will be visible to recipients whose email clients do not display HTML.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHtml(String html)
The HTML body of the email.
|
void |
setSubject(String subject)
The subject line of the email.
|
void |
setText(String text)
The email body that will be visible to recipients whose email clients do not display HTML.
|
String |
toString()
Returns a string representation of this object.
|
EmailTemplateContent |
withHtml(String html)
The HTML body of the email.
|
EmailTemplateContent |
withSubject(String subject)
The subject line of the email.
|
EmailTemplateContent |
withText(String text)
The email body that will be visible to recipients whose email clients do not display HTML.
|
public void setSubject(String subject)
The subject line of the email.
subject
- The subject line of the email.public String getSubject()
The subject line of the email.
public EmailTemplateContent withSubject(String subject)
The subject line of the email.
subject
- The subject line of the email.public void setText(String text)
The email body that will be visible to recipients whose email clients do not display HTML.
text
- The email body that will be visible to recipients whose email clients do not display HTML.public String getText()
The email body that will be visible to recipients whose email clients do not display HTML.
public EmailTemplateContent withText(String text)
The email body that will be visible to recipients whose email clients do not display HTML.
text
- The email body that will be visible to recipients whose email clients do not display HTML.public void setHtml(String html)
The HTML body of the email.
html
- The HTML body of the email.public String getHtml()
The HTML body of the email.
public EmailTemplateContent withHtml(String html)
The HTML body of the email.
html
- The HTML body of the email.public String toString()
toString
in class Object
Object.toString()
public EmailTemplateContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.