@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EmailTemplateRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the content and settings for a message template that can be used in messages that are sent through the email channel.
Constructor and Description |
---|
EmailTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
EmailTemplateRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
EmailTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
EmailTemplateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
String |
getHtmlPart()
The message body, in HTML format, to use in email messages that are based on the message template.
|
String |
getRecommenderId()
The unique identifier for the recommender model to use for the message template.
|
String |
getSubject()
The subject line, or title, to use in email messages that are based on the message template.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
String |
getTemplateDescription()
A custom description of the message template.
|
String |
getTextPart()
The message body, in plain text format, to use in email messages that are based on the message template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
void |
setHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template.
|
void |
setRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
void |
setSubject(String subject)
The subject line, or title, to use in email messages that are based on the message template.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
void |
setTemplateDescription(String templateDescription)
A custom description of the message template.
|
void |
setTextPart(String textPart)
The message body, in plain text format, to use in email messages that are based on the message template.
|
String |
toString()
Returns a string representation of this object.
|
EmailTemplateRequest |
withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
EmailTemplateRequest |
withHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template.
|
EmailTemplateRequest |
withRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
EmailTemplateRequest |
withSubject(String subject)
The subject line, or title, to use in email messages that are based on the message template.
|
EmailTemplateRequest |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template.
|
EmailTemplateRequest |
withTemplateDescription(String templateDescription)
A custom description of the message template.
|
EmailTemplateRequest |
withTextPart(String textPart)
The message body, in plain text format, to use in email messages that are based on the message template.
|
public void setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This
object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding
value defines the default value for that variable. When you create a message that's based on the template,
you can override these defaults with message-specific and address-specific variables and values.public String getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
public EmailTemplateRequest withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This
object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding
value defines the default value for that variable. When you create a message that's based on the template,
you can override these defaults with message-specific and address-specific variables and values.public void setHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart
- The message body, in HTML format, to use in email messages that are based on the message template. We
recommend using HTML format for email clients that render HTML content. You can include links, formatted
text, and more in an HTML message.public String getHtmlPart()
The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
public EmailTemplateRequest withHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart
- The message body, in HTML format, to use in email messages that are based on the message template. We
recommend using HTML format for email clients that render HTML content. You can include links, formatted
text, and more in an HTML message.public void setRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
recommenderId
- The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this
value to determine how to retrieve and process data from a recommender model when it sends messages that
use the template, if the template contains message variables for recommendation data.public String getRecommenderId()
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
public EmailTemplateRequest withRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this value to determine how to retrieve and process data from a recommender model when it sends messages that use the template, if the template contains message variables for recommendation data.
recommenderId
- The unique identifier for the recommender model to use for the message template. Amazon Pinpoint uses this
value to determine how to retrieve and process data from a recommender model when it sends messages that
use the template, if the template contains message variables for recommendation data.public void setSubject(String subject)
The subject line, or title, to use in email messages that are based on the message template.
subject
- The subject line, or title, to use in email messages that are based on the message template.public String getSubject()
The subject line, or title, to use in email messages that are based on the message template.
public EmailTemplateRequest withSubject(String subject)
The subject line, or title, to use in email messages that are based on the message template.
subject
- The subject line, or title, to use in email messages that are based on the message template.public Map<String,String> getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
public void setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public EmailTemplateRequest withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that defines the tags to associate with the message template.
Each tag consists of a required tag key and an associated tag value.public EmailTemplateRequest addTagsEntry(String key, String value)
public EmailTemplateRequest clearTagsEntries()
public void setTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public String getTemplateDescription()
A custom description of the message template.
public EmailTemplateRequest withTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public void setTextPart(String textPart)
The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The message body, in plain text format, to use in email messages that are based on the message template.
We recommend using plain text format for email clients that don't render HTML content and clients that are
connected to high-latency networks, such as mobile devices.public String getTextPart()
The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
public EmailTemplateRequest withTextPart(String textPart)
The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The message body, in plain text format, to use in email messages that are based on the message template.
We recommend using plain text format for email clients that don't render HTML content and clients that are
connected to high-latency networks, such as mobile devices.public String toString()
toString
in class Object
Object.toString()
public EmailTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.