@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Template extends Object implements Serializable, Cloneable, StructuredPojo
An object that defines the email template to use for an email message, and the values to use for any message variables in that template. An email template is a type of message template that contains content that you want to define, save, and reuse in email messages that you send.
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
Template |
clone() |
boolean |
equals(Object obj) |
String |
getTemplateArn()
The Amazon Resource Name (ARN) of the template.
|
String |
getTemplateData()
An object that defines the values to use for message variables in the template.
|
String |
getTemplateName()
The name of the template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTemplateArn(String templateArn)
The Amazon Resource Name (ARN) of the template.
|
void |
setTemplateData(String templateData)
An object that defines the values to use for message variables in the template.
|
void |
setTemplateName(String templateName)
The name of the template.
|
String |
toString()
Returns a string representation of this object.
|
Template |
withTemplateArn(String templateArn)
The Amazon Resource Name (ARN) of the template.
|
Template |
withTemplateData(String templateData)
An object that defines the values to use for message variables in the template.
|
Template |
withTemplateName(String templateName)
The name of the template.
|
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 setTemplateArn(String templateArn)
The Amazon Resource Name (ARN) of the template.
templateArn
- The Amazon Resource Name (ARN) of the template.public String getTemplateArn()
The Amazon Resource Name (ARN) of the template.
public Template withTemplateArn(String templateArn)
The Amazon Resource Name (ARN) of the template.
templateArn
- The Amazon Resource Name (ARN) of the template.public void setTemplateData(String templateData)
An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.
templateData
- An object that defines the values to use for message variables in the template. This object is a set of
key-value pairs. Each key defines a message variable in the template. The corresponding value defines the
value to use for that variable.public String getTemplateData()
An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.
public Template withTemplateData(String templateData)
An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.
templateData
- An object that defines the values to use for message variables in the template. This object is a set of
key-value pairs. Each key defines a message variable in the template. The corresponding value defines the
value to use for that variable.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.