Interface VoiceMessage.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<VoiceMessage.Builder,,- VoiceMessage> - SdkBuilder<VoiceMessage.Builder,,- VoiceMessage> - SdkPojo
- Enclosing class:
- VoiceMessage
- 
Method SummaryModifier and TypeMethodDescriptionThe text of the script to use for the voice message.languageCode(String languageCode) The code for the language to use when synthesizing the text of the message script.originationNumber(String originationNumber) The long code to send the voice message from.substitutions(Map<String, ? extends Collection<String>> substitutions) The default message variables to use in the voice message.The name of the voice to use when delivering the message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
bodyThe text of the script to use for the voice message. - Parameters:
- body- The text of the script to use for the voice message.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
languageCodeThe 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
originationNumberThe 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
substitutionsThe default message variables to use in the voice message. You can override the default variables with individual address variables. - Parameters:
- substitutions- The default message variables to use in the voice message. You can override the default variables with individual address variables.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
voiceIdThe name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide. - Parameters:
- voiceId- The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-