Interface SendVoiceMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SendVoiceMessageRequest.Builder,
,SendVoiceMessageRequest> PinpointSmsVoiceRequest.Builder
,SdkBuilder<SendVoiceMessageRequest.Builder,
,SendVoiceMessageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SendVoiceMessageRequest
public static interface SendVoiceMessageRequest.Builder
extends PinpointSmsVoiceRequest.Builder, SdkPojo, CopyableBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe phone number that appears on recipients' devices when they receive the message.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.content
(VoiceMessageContent content) Sets the value of the Content property for this object.destinationPhoneNumber
(String destinationPhoneNumber) The phone number that you want to send the voice message to.originationPhoneNumber
(String originationPhoneNumber) The phone number that Amazon Pinpoint should use to send the voice message.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pinpointsmsvoice.model.PinpointSmsVoiceRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
callerId
The phone number that appears on recipients' devices when they receive the message.- Parameters:
callerId
- The phone number that appears on recipients' devices when they receive the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationSetName
The name of the configuration set that you want to use to send the message.- Parameters:
configurationSetName
- The name of the configuration set that you want to use to send the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Sets the value of the Content property for this object.- Parameters:
content
- The new value for the Content property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Sets the value of the Content property for this object. This is a convenience method that creates an instance of theVoiceMessageContent.Builder
avoiding the need to create one manually viaVoiceMessageContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(VoiceMessageContent)
.- Parameters:
content
- a consumer that will call methods onVoiceMessageContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationPhoneNumber
The phone number that you want to send the voice message to.- Parameters:
destinationPhoneNumber
- The phone number that you want to send the voice message to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendVoiceMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendVoiceMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-