public static interface VoiceMessage.Builder extends SdkPojo, CopyableBuilder<VoiceMessage.Builder,VoiceMessage>
| Modifier and Type | Method and Description |
|---|---|
VoiceMessage.Builder |
body(String body)
The text script for the voice message.
|
VoiceMessage.Builder |
languageCode(String languageCode)
The language to use when delivering the message.
|
VoiceMessage.Builder |
originationNumber(String originationNumber)
The phone number from the pool or messaging service to send the message from.
|
VoiceMessage.Builder |
substitutions(Map<String,? extends Collection<String>> substitutions)
The default message variables to use in the voice message.
|
VoiceMessage.Builder |
voiceId(String voiceId)
The name of the voice to use when delivering the message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildVoiceMessage.Builder body(String body)
The text script for the voice message.
body - The text script for the voice message.VoiceMessage.Builder languageCode(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.VoiceMessage.Builder originationNumber(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.VoiceMessage.Builder substitutions(Map<String,? extends Collection<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.VoiceMessage.Builder voiceId(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.Copyright © 2019. All rights reserved.