public static interface SendVoiceMessageRequest.Builder extends PinpointSmsVoiceRequest.Builder, SdkPojo, CopyableBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>
Modifier and Type | Method and Description |
---|---|
SendVoiceMessageRequest.Builder |
callerId(String callerId)
The phone number that appears on recipients' devices when they receive the message.
|
SendVoiceMessageRequest.Builder |
configurationSetName(String configurationSetName)
The name of the configuration set that you want to use to send the message.
|
default SendVoiceMessageRequest.Builder |
content(Consumer<VoiceMessageContent.Builder> content)
Sets the value of the Content property for this object.
|
SendVoiceMessageRequest.Builder |
content(VoiceMessageContent content)
Sets the value of the Content property for this object.
|
SendVoiceMessageRequest.Builder |
destinationPhoneNumber(String destinationPhoneNumber)
The phone number that you want to send the voice message to.
|
SendVoiceMessageRequest.Builder |
originationPhoneNumber(String originationPhoneNumber)
The phone number that Amazon Pinpoint should use to send the voice message.
|
SendVoiceMessageRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
SendVoiceMessageRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
SendVoiceMessageRequest.Builder callerId(String callerId)
callerId
- The phone number that appears on recipients' devices when they receive the message.SendVoiceMessageRequest.Builder configurationSetName(String configurationSetName)
configurationSetName
- The name of the configuration set that you want to use to send the message.SendVoiceMessageRequest.Builder content(VoiceMessageContent content)
content
- The new value for the Content property for this object.default SendVoiceMessageRequest.Builder content(Consumer<VoiceMessageContent.Builder> content)
VoiceMessageContent.Builder
avoiding the need
to create one manually via VoiceMessageContent.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to content(VoiceMessageContent)
.content
- a consumer that will call methods on VoiceMessageContent.Builder
content(VoiceMessageContent)
SendVoiceMessageRequest.Builder destinationPhoneNumber(String destinationPhoneNumber)
destinationPhoneNumber
- The phone number that you want to send the voice message to.SendVoiceMessageRequest.Builder originationPhoneNumber(String originationPhoneNumber)
originationPhoneNumber
- The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the
phone number that appears on recipients' devices when they receive the message, because you can
specify a CallerId parameter in the request.SendVoiceMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.SendVoiceMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.