@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Template extends Object implements Serializable, Cloneable
The content of the email, composed of a subject line and either an HTML part or a text-only part.
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
Template |
clone() |
boolean |
equals(Object obj) |
String |
getHtmlPart()
The HTML body of the email.
|
String |
getSubjectPart()
The subject line of the email.
|
String |
getTemplateName()
The name of the template.
|
String |
getTextPart()
The email body that is visible to recipients whose email clients do not display HTML content.
|
int |
hashCode() |
void |
setHtmlPart(String htmlPart)
The HTML body of the email.
|
void |
setSubjectPart(String subjectPart)
The subject line of the email.
|
void |
setTemplateName(String templateName)
The name of the template.
|
void |
setTextPart(String textPart)
The email body that is visible to recipients whose email clients do not display HTML content.
|
String |
toString()
Returns a string representation of this object.
|
Template |
withHtmlPart(String htmlPart)
The HTML body of the email.
|
Template |
withSubjectPart(String subjectPart)
The subject line of the email.
|
Template |
withTemplateName(String templateName)
The name of the template.
|
Template |
withTextPart(String textPart)
The email body that is visible to recipients whose email clients do not display HTML content.
|
public void setTemplateName(String templateName)
The name of the template. You use this name when you send email using the SendTemplatedEmail
or
SendBulkTemplatedEmail
operations.
templateName
- The name of the template. You use this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.public String getTemplateName()
The name of the template. You use this name when you send email using the SendTemplatedEmail
or
SendBulkTemplatedEmail
operations.
SendTemplatedEmail
or SendBulkTemplatedEmail
operations.public Template withTemplateName(String templateName)
The name of the template. You use this name when you send email using the SendTemplatedEmail
or
SendBulkTemplatedEmail
operations.
templateName
- The name of the template. You use this name when you send email using the SendTemplatedEmail
or SendBulkTemplatedEmail
operations.public void setSubjectPart(String subjectPart)
The subject line of the email.
subjectPart
- The subject line of the email.public String getSubjectPart()
The subject line of the email.
public Template withSubjectPart(String subjectPart)
The subject line of the email.
subjectPart
- The subject line of the email.public void setTextPart(String textPart)
The email body that is visible to recipients whose email clients do not display HTML content.
textPart
- The email body that is visible to recipients whose email clients do not display HTML content.public String getTextPart()
The email body that is visible to recipients whose email clients do not display HTML content.
public Template withTextPart(String textPart)
The email body that is visible to recipients whose email clients do not display HTML content.
textPart
- The email body that is visible to recipients whose email clients do not display HTML content.public void setHtmlPart(String htmlPart)
The HTML body of the email.
htmlPart
- The HTML body of the email.public String getHtmlPart()
The HTML body of the email.
public Template withHtmlPart(String htmlPart)
The HTML body of the email.
htmlPart
- The HTML body of the email.public String toString()
toString
in class Object
Object.toString()