@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VoiceMessage extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the settings for a one-time voice message that's sent directly to an endpoint through the voice channel.
Constructor and Description |
---|
VoiceMessage() |
Modifier and Type | Method and Description |
---|---|
VoiceMessage |
addSubstitutionsEntry(String key,
List<String> value)
Add a single Substitutions entry
|
VoiceMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
VoiceMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The text of the script to use for the voice message.
|
String |
getLanguageCode()
The code for the language to use when synthesizing the text of the message script.
|
String |
getOriginationNumber()
The long code to send the voice message from.
|
Map<String,List<String>> |
getSubstitutions()
The default message variables to use in the voice message.
|
String |
getVoiceId()
The name of the voice to use when delivering the message.
|
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 for the voice message.
|
void |
setLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the message script.
|
void |
setOriginationNumber(String originationNumber)
The long code to send the voice message from.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the voice message.
|
void |
setVoiceId(String voiceId)
The name of the voice to use when delivering the message.
|
String |
toString()
Returns a string representation of this object.
|
VoiceMessage |
withBody(String body)
The text of the script to use for the voice message.
|
VoiceMessage |
withLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the message script.
|
VoiceMessage |
withOriginationNumber(String originationNumber)
The long code to send the voice message from.
|
VoiceMessage |
withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the voice message.
|
VoiceMessage |
withVoiceId(String voiceId)
The name of the voice to use when delivering the message.
|
public void setBody(String body)
The text of the script to use for the voice message.
body
- The text of the script to use for the voice message.public String getBody()
The text of the script to use for the voice message.
public VoiceMessage withBody(String body)
The text of the script to use for the voice message.
body
- The text of the script to use for the voice message.public void setLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the message script. 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 message script. 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 message script. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
public VoiceMessage withLanguageCode(String languageCode)
The code for the language to use when synthesizing the text of the message script. 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 message script. For a list of supported
languages and the code for each one, see the Amazon Polly Developer Guide.public void setOriginationNumber(String originationNumber)
The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.
originationNumber
- The long code to send the voice message from. This value should be one of the dedicated long codes that's
assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in
E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.public String getOriginationNumber()
The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.
public VoiceMessage withOriginationNumber(String originationNumber)
The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.
originationNumber
- The long code to send the voice message from. This value should be one of the dedicated long codes that's
assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in
E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.public Map<String,List<String>> getSubstitutions()
The default message variables to use in the voice message. You can override the default variables with individual address variables.
public void setSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the voice message. You can override the default variables with individual address variables.
substitutions
- The default message variables to use in the voice message. You can override the default variables with
individual address variables.public VoiceMessage withSubstitutions(Map<String,List<String>> substitutions)
The default message variables to use in the voice message. You can override the default variables with individual address variables.
substitutions
- The default message variables to use in the voice message. You can override the default variables with
individual address variables.public VoiceMessage addSubstitutionsEntry(String key, List<String> value)
public VoiceMessage clearSubstitutionsEntries()
public void setVoiceId(String voiceId)
The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.
voiceId
- The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.public String getVoiceId()
The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.
public VoiceMessage withVoiceId(String voiceId)
The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.
voiceId
- The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.public String toString()
toString
in class Object
Object.toString()
public VoiceMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.