@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, an HTML part, and 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 will be visible to recipients whose email clients do not display HTML.
|
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 will be visible to recipients whose email clients do not display HTML.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 will be visible to recipients whose email clients do not display HTML.
|
public void setTemplateName(String templateName)
The name of the template. You will refer to this name when you send email using the
SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
templateName
- The name of the template. You will refer to this name when you send email using the
SendTemplatedEmail
or SendBulkTemplatedEmail
operations.public String getTemplateName()
The name of the template. You will refer to 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 will refer to this name when you send email using the
SendTemplatedEmail
or SendBulkTemplatedEmail
operations.
templateName
- The name of the template. You will refer to 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 will be visible to recipients whose email clients do not display HTML.
textPart
- The email body that will be visible to recipients whose email clients do not display HTML.public String getTextPart()
The email body that will be visible to recipients whose email clients do not display HTML.
public Template withTextPart(String textPart)
The email body that will be visible to recipients whose email clients do not display HTML.
textPart
- The email body that will be visible to recipients whose email clients do not display HTML.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.