@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SMSTemplateRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the content and settings for a message template that can be used in text messages that are sent through the SMS channel.
Constructor and Description |
---|
SMSTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
SMSTemplateRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
SMSTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
SMSTemplateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The message body to use in text messages that are based on the message template.
|
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
String |
getRecommenderId()
The unique identifier for the recommender model to use for the message template.
|
Map<String,String> |
getTags()
|
String |
getTemplateDescription()
A custom description of the message template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The message body to use in text messages that are based on the message template.
|
void |
setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
void |
setRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
void |
setTags(Map<String,String> tags)
|
void |
setTemplateDescription(String templateDescription)
A custom description of the message template.
|
String |
toString()
Returns a string representation of this object.
|
SMSTemplateRequest |
withBody(String body)
The message body to use in text messages that are based on the message template.
|
SMSTemplateRequest |
withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
SMSTemplateRequest |
withRecommenderId(String recommenderId)
The unique identifier for the recommender model to use for the message template.
|
SMSTemplateRequest |
withTags(Map<String,String> tags)
|
SMSTemplateRequest |
withTemplateDescription(String templateDescription)
A custom description of the message template.
|
public void setBody(String body)
The message body to use in text messages that are based on the message template.
body
- The message body to use in text messages that are based on the message template.public String getBody()
The message body to use in text messages that are based on the message template.
public SMSTemplateRequest withBody(String body)
The message body to use in text messages that are based on the message template.
body
- The message body to use in text 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 SMSTemplateRequest 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 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 SMSTemplateRequest 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 Map<String,String> getTags()
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public SMSTemplateRequest withTags(Map<String,String> tags)
As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags is not processed and an error code is not returned. To manage tags we recommend using either Tags in the API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.
(Deprecated) 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
- As of 22-05-2023 tags has been deprecated for update operations. After this date any value in tags
is not processed and an error code is not returned. To manage tags we recommend using either Tags in the
API Reference for Amazon Pinpoint, resourcegroupstaggingapi commands in the AWS Command Line Interface Documentation or resourcegroupstaggingapi in the AWS SDK.public SMSTemplateRequest addTagsEntry(String key, String value)
public SMSTemplateRequest 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 SMSTemplateRequest withTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public String toString()
toString
in class Object
Object.toString()
public SMSTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.