public class VoiceMessage
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
VoiceMessage() |
Modifier and Type | Method and Description |
---|---|
VoiceMessage |
addSubstitutionsEntry(java.lang.String key,
java.util.List<java.lang.String> value)
Default message substitutions.
|
VoiceMessage |
clearSubstitutionsEntries()
Removes all the entries added into Substitutions.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
The message body of the notification, the email body or the text message.
|
java.lang.String |
getLanguageCode()
Language of sent message
|
java.lang.String |
getOriginationNumber()
Is the number from the pool or messaging service to send from.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getSubstitutions()
Default message substitutions.
|
java.lang.String |
getVoiceId()
Voice ID of sent message.
|
int |
hashCode() |
void |
setBody(java.lang.String body)
The message body of the notification, the email body or the text message.
|
void |
setLanguageCode(java.lang.String languageCode)
Language of sent message
|
void |
setOriginationNumber(java.lang.String originationNumber)
Is the number from the pool or messaging service to send from.
|
void |
setSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
Default message substitutions.
|
void |
setVoiceId(java.lang.String voiceId)
Voice ID of sent message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VoiceMessage |
withBody(java.lang.String body)
The message body of the notification, the email body or the text message.
|
VoiceMessage |
withLanguageCode(java.lang.String languageCode)
Language of sent message
|
VoiceMessage |
withOriginationNumber(java.lang.String originationNumber)
Is the number from the pool or messaging service to send from.
|
VoiceMessage |
withSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
Default message substitutions.
|
VoiceMessage |
withVoiceId(java.lang.String voiceId)
Voice ID of sent message.
|
public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- The message body of the notification, the email body or the
text message.public VoiceMessage withBody(java.lang.String body)
Returns a reference to this object so that method calls can be chained together.
body
- The message body of the notification, the email body or the
text message.public java.lang.String getLanguageCode()
public void setLanguageCode(java.lang.String languageCode)
languageCode
- Language of sent messagepublic VoiceMessage withLanguageCode(java.lang.String languageCode)
Returns a reference to this object so that method calls can be chained together.
languageCode
- Language of sent messagepublic java.lang.String getOriginationNumber()
public void setOriginationNumber(java.lang.String originationNumber)
originationNumber
- Is the number from the pool or messaging service
to send from.public VoiceMessage withOriginationNumber(java.lang.String originationNumber)
Returns a reference to this object so that method calls can be chained together.
originationNumber
- Is the number from the pool or messaging service
to send from.public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getSubstitutions()
public void setSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by
individual address substitutions.public VoiceMessage withSubstitutions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> substitutions)
Returns a reference to this object so that method calls can be chained together.
substitutions
- Default message substitutions. Can be overridden by
individual address substitutions.public VoiceMessage addSubstitutionsEntry(java.lang.String key, java.util.List<java.lang.String> value)
The method adds a new key-value pair into Substitutions parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Substitutions.value
- The corresponding value of the entry to be added into
Substitutions.public VoiceMessage clearSubstitutionsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getVoiceId()
public void setVoiceId(java.lang.String voiceId)
voiceId
- Voice ID of sent message.public VoiceMessage withVoiceId(java.lang.String voiceId)
Returns a reference to this object so that method calls can be chained together.
voiceId
- Voice ID of sent message.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.