public class Template
extends java.lang.Object
implements java.io.Serializable
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 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHtmlPart()
The HTML body of the email.
|
java.lang.String |
getSubjectPart()
The subject line of the email.
|
java.lang.String |
getTemplateName()
The name of the template.
|
java.lang.String |
getTextPart()
The email body that will be visible to recipients whose email clients do
not display HTML.
|
int |
hashCode() |
void |
setHtmlPart(java.lang.String htmlPart)
The HTML body of the email.
|
void |
setSubjectPart(java.lang.String subjectPart)
The subject line of the email.
|
void |
setTemplateName(java.lang.String templateName)
The name of the template.
|
void |
setTextPart(java.lang.String textPart)
The email body that will be visible to recipients whose email clients do
not display HTML.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Template |
withHtmlPart(java.lang.String htmlPart)
The HTML body of the email.
|
Template |
withSubjectPart(java.lang.String subjectPart)
The subject line of the email.
|
Template |
withTemplateName(java.lang.String templateName)
The name of the template.
|
Template |
withTextPart(java.lang.String textPart)
The email body that will be visible to recipients whose email clients do
not display HTML.
|
public java.lang.String getTemplateName()
The name of the template. You will refer to this name when you send email
using the SendTemplatedEmail or
SendBulkTemplatedEmail operations.
The name of the template. You will refer to this name when you
send email using the SendTemplatedEmail or
SendBulkTemplatedEmail operations.
public void setTemplateName(java.lang.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 Template withTemplateName(java.lang.String templateName)
The name of the template. You will refer to this name when you send email
using the SendTemplatedEmail or
SendBulkTemplatedEmail operations.
Returns a reference to this object so that method calls can be chained together.
templateName -
The name of the template. You will refer to this name when you
send email using the SendTemplatedEmail or
SendBulkTemplatedEmail operations.
public java.lang.String getSubjectPart()
The subject line of the email.
The subject line of the email.
public void setSubjectPart(java.lang.String subjectPart)
The subject line of the email.
subjectPart - The subject line of the email.
public Template withSubjectPart(java.lang.String subjectPart)
The subject line of the email.
Returns a reference to this object so that method calls can be chained together.
subjectPart - The subject line of the email.
public java.lang.String getTextPart()
The email body that will be visible to recipients whose email clients do not display HTML.
The email body that will be visible to recipients whose email clients do not display HTML.
public void setTextPart(java.lang.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 Template withTextPart(java.lang.String textPart)
The email body that will be visible to recipients whose email clients do not display HTML.
Returns a reference to this object so that method calls can be chained together.
textPart - The email body that will be visible to recipients whose email clients do not display HTML.
public java.lang.String getHtmlPart()
The HTML body of the email.
The HTML body of the email.
public void setHtmlPart(java.lang.String htmlPart)
The HTML body of the email.
htmlPart - The HTML body of the email.
public Template withHtmlPart(java.lang.String htmlPart)
The HTML body of the email.
Returns a reference to this object so that method calls can be chained together.
htmlPart - The HTML body of the email.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.