@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VoiceTemplateRequest 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 voice channel.
Constructor and Description |
---|
VoiceTemplateRequest() |
Modifier and Type | Method and Description |
---|---|
VoiceTemplateRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
VoiceTemplateRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
VoiceTemplateRequest |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The text of the script to use in messages that are based on the message template, in plain text format.
|
String |
getDefaultSubstitutions()
A JSON object that specifies the default values to use for message variables in the message template.
|
String |
getLanguageCode()
The code for the language to use when synthesizing the text of the script in messages that are based on the
message template.
|
Map<String,String> |
getTags()
|
String |
getTemplateDescription()
A custom description of the message template.
|
String |
getVoiceId()
The name of the voice to use when delivering messages that are based on the message template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBody(String body)
The text of the script to use in messages that are based on the message template, in plain text format.
|
void |
setDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
void |
setLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the script in messages that are based on the
message template.
|
void |
setTags(Map<String,String> tags)
|
void |
setTemplateDescription(String templateDescription)
A custom description of the message template.
|
void |
setVoiceId(String voiceId)
The name of the voice to use when delivering messages that are based on the message template.
|
String |
toString()
Returns a string representation of this object.
|
VoiceTemplateRequest |
withBody(String body)
The text of the script to use in messages that are based on the message template, in plain text format.
|
VoiceTemplateRequest |
withDefaultSubstitutions(String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
VoiceTemplateRequest |
withLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the script in messages that are based on the
message template.
|
VoiceTemplateRequest |
withTags(Map<String,String> tags)
|
VoiceTemplateRequest |
withTemplateDescription(String templateDescription)
A custom description of the message template.
|
VoiceTemplateRequest |
withVoiceId(String voiceId)
The name of the voice to use when delivering messages that are based on the message template.
|
public void setBody(String body)
The text of the script to use in messages that are based on the message template, in plain text format.
body
- The text of the script to use in messages that are based on the message template, in plain text format.public String getBody()
The text of the script to use in messages that are based on the message template, in plain text format.
public VoiceTemplateRequest withBody(String body)
The text of the script to use in messages that are based on the message template, in plain text format.
body
- The text of the script to use in messages that are based on the message template, in plain text format.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 VoiceTemplateRequest 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 setLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the script in messages that are based on the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
languageCode
- The code for the language to use when synthesizing the text of the script in messages that are based on
the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.public String getLanguageCode()
The code for the language to use when synthesizing the text of the script in messages that are based on the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
public VoiceTemplateRequest withLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the script in messages that are based on the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
languageCode
- The code for the language to use when synthesizing the text of the script in messages that are based on
the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.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 VoiceTemplateRequest 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 VoiceTemplateRequest addTagsEntry(String key, String value)
public VoiceTemplateRequest 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 VoiceTemplateRequest withTemplateDescription(String templateDescription)
A custom description of the message template.
templateDescription
- A custom description of the message template.public void setVoiceId(String voiceId)
The name of the voice to use when delivering messages that are based on the message template. For a list of supported voices, see the Amazon Polly Developer Guide.
voiceId
- The name of the voice to use when delivering messages that are based on the message template. For a list
of supported voices, see the Amazon
Polly Developer Guide.public String getVoiceId()
The name of the voice to use when delivering messages that are based on the message template. For a list of supported voices, see the Amazon Polly Developer Guide.
public VoiceTemplateRequest withVoiceId(String voiceId)
The name of the voice to use when delivering messages that are based on the message template. For a list of supported voices, see the Amazon Polly Developer Guide.
voiceId
- The name of the voice to use when delivering messages that are based on the message template. For a list
of supported voices, see the Amazon
Polly Developer Guide.public String toString()
toString
in class Object
Object.toString()
public VoiceTemplateRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.