@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) |
VoiceMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
VoiceMessage |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The text script for the voice message.
|
String |
getLanguageCode()
The language to use when delivering the message.
|
String |
getOriginationNumber()
The phone number from the pool or messaging service to send the 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) |
void |
setBody(String body)
The text script for the voice message.
|
void |
setLanguageCode(String languageCode)
The language to use when delivering the message.
|
void |
setOriginationNumber(String originationNumber)
The phone number from the pool or messaging service to send the 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 script for the voice message.
|
VoiceMessage |
withLanguageCode(String languageCode)
The language to use when delivering the message.
|
VoiceMessage |
withOriginationNumber(String originationNumber)
The phone number from the pool or messaging service to send the 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 script for the voice message.
body
- The text script for the voice message.public String getBody()
The text script for the voice message.
public VoiceMessage withBody(String body)
The text script for the voice message.
body
- The text script for the voice message.public void setLanguageCode(String languageCode)
The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.
languageCode
- The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.public String getLanguageCode()
The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.
public VoiceMessage withLanguageCode(String languageCode)
The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.
languageCode
- The language to use when delivering the message. For a list of supported languages, see the Amazon Polly Developer Guide.public void setOriginationNumber(String originationNumber)
The phone number from the pool or messaging service to send the message from. Although it isn't required, we recommend that you specify the phone number in E.164 format to ensure prompt and accurate delivery.
originationNumber
- The phone number from the pool or messaging service to send the message from. Although it isn't required,
we recommend that you specify the phone number in E.164 format to ensure prompt and accurate delivery.public String getOriginationNumber()
The phone number from the pool or messaging service to send the message from. Although it isn't required, we recommend that you specify the phone number in E.164 format to ensure prompt and accurate delivery.
public VoiceMessage withOriginationNumber(String originationNumber)
The phone number from the pool or messaging service to send the message from. Although it isn't required, we recommend that you specify the phone number in E.164 format to ensure prompt and accurate delivery.
originationNumber
- The phone number from the pool or messaging service to send the message from. Although it isn't required,
we recommend that you specify the phone number in E.164 format to ensure prompt and accurate delivery.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)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.