public static interface VoiceMessage.Builder extends SdkPojo, CopyableBuilder<VoiceMessage.Builder,VoiceMessage>
| Modifier and Type | Method and Description |
|---|---|
VoiceMessage.Builder |
body(String body)
The text of the script to use for the voice message.
|
VoiceMessage.Builder |
languageCode(String languageCode)
The code for the language to use when synthesizing the text of the message script.
|
VoiceMessage.Builder |
originationNumber(String originationNumber)
The long code to send the voice 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 of the script to use for the voice message.
body - The text of the script to use for the voice message.VoiceMessage.Builder languageCode(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.VoiceMessage.Builder originationNumber(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.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 © 2023. All rights reserved.