@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) |
EmailTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
EmailTemplateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getHtmlPart()
The message body, in HTML format, to use in email messages that are based on 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 |
getTextPart()
The message body, in 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 |
setHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on 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 |
setTextPart(String textPart)
The message body, in text format, to use in email messages that are based on the message template.
|
String |
toString()
Returns a string representation of this object.
|
EmailTemplateRequest |
withHtmlPart(String htmlPart)
The message body, in HTML format, to use in email messages that are based on 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 |
withTextPart(String textPart)
The message body, in text format, to use in email messages that are based on the message template.
|
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 support HTML. 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 support HTML. 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 support HTML. 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 support HTML. 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 support HTML. You can include links, formatted text,
and more in an HTML message.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 setTextPart(String textPart)
The message body, in text format, to use in email messages that are based on the message template. We recommend using text format for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The message body, in text format, to use in email messages that are based on the message template. We
recommend using text format for email clients that don't support HTML and clients that are connected to
high-latency networks, such as mobile devices.public String getTextPart()
The message body, in text format, to use in email messages that are based on the message template. We recommend using text format for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
public EmailTemplateRequest withTextPart(String textPart)
The message body, in text format, to use in email messages that are based on the message template. We recommend using text format for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The message body, in text format, to use in email messages that are based on the message template. We
recommend using text format for email clients that don't support HTML 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.