@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VoiceMessage extends Object implements Serializable, Cloneable, StructuredPojo
| 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 message body of the notification, the email body or the text message.
|
String |
getLanguageCode()
Language of sent message
|
String |
getOriginationNumber()
Is the number from the pool or messaging service to send from.
|
Map<String,List<String>> |
getSubstitutions()
Default message substitutions.
|
String |
getVoiceId()
Voice ID of sent message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBody(String body)
The message body of the notification, the email body or the text message.
|
void |
setLanguageCode(String languageCode)
Language of sent message
|
void |
setOriginationNumber(String originationNumber)
Is the number from the pool or messaging service to send from.
|
void |
setSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
void |
setVoiceId(String voiceId)
Voice ID of sent message.
|
String |
toString()
Returns a string representation of this object.
|
VoiceMessage |
withBody(String body)
The message body of the notification, the email body or the text message.
|
VoiceMessage |
withLanguageCode(String languageCode)
Language of sent message
|
VoiceMessage |
withOriginationNumber(String originationNumber)
Is the number from the pool or messaging service to send from.
|
VoiceMessage |
withSubstitutions(Map<String,List<String>> substitutions)
Default message substitutions.
|
VoiceMessage |
withVoiceId(String voiceId)
Voice ID of sent message.
|
public void setBody(String body)
body - The message body of the notification, the email body or the text message.public String getBody()
public VoiceMessage withBody(String body)
body - The message body of the notification, the email body or the text message.public void setLanguageCode(String languageCode)
languageCode - Language of sent messagepublic String getLanguageCode()
public VoiceMessage withLanguageCode(String languageCode)
languageCode - Language of sent messagepublic void setOriginationNumber(String originationNumber)
originationNumber - Is the number from the pool or messaging service to send from.public String getOriginationNumber()
public VoiceMessage withOriginationNumber(String originationNumber)
originationNumber - Is the number from the pool or messaging service to send from.public Map<String,List<String>> getSubstitutions()
public void setSubstitutions(Map<String,List<String>> substitutions)
substitutions - Default message substitutions. Can be overridden by individual address substitutions.public VoiceMessage withSubstitutions(Map<String,List<String>> substitutions)
substitutions - Default message substitutions. Can be overridden by individual address substitutions.public VoiceMessage addSubstitutionsEntry(String key, List<String> value)
public VoiceMessage clearSubstitutionsEntries()
public void setVoiceId(String voiceId)
voiceId - Voice ID of sent message.public String getVoiceId()
public VoiceMessage withVoiceId(String voiceId)
voiceId - Voice ID of sent message.public String toString()
toString in class ObjectObject.toString()public VoiceMessage clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.