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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SendVoiceMessageRequest.BuildercallerId(String callerId)The phone number that appears on recipients' devices when they receive the message.SendVoiceMessageRequest.BuilderconfigurationSetName(String configurationSetName)The name of the configuration set that you want to use to send the message.default SendVoiceMessageRequest.Buildercontent(Consumer<VoiceMessageContent.Builder> content)Sets the value of the Content property for this object.SendVoiceMessageRequest.Buildercontent(VoiceMessageContent content)Sets the value of the Content property for this object.SendVoiceMessageRequest.BuilderdestinationPhoneNumber(String destinationPhoneNumber)The phone number that you want to send the voice message to.SendVoiceMessageRequest.BuilderoriginationPhoneNumber(String originationPhoneNumber)The phone number that Amazon Pinpoint should use to send the voice message.SendVoiceMessageRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SendVoiceMessageRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
callerId
SendVoiceMessageRequest.Builder callerId(String 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
SendVoiceMessageRequest.Builder configurationSetName(String 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
SendVoiceMessageRequest.Builder content(VoiceMessageContent 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
default SendVoiceMessageRequest.Builder content(Consumer<VoiceMessageContent.Builder> content)
Sets the value of the Content property for this object. This is a convenience method that creates an instance of theVoiceMessageContent.Builderavoiding the need to create one manually viaVoiceMessageContent.builder().When the
Consumercompletes,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:
content(VoiceMessageContent)
-
destinationPhoneNumber
SendVoiceMessageRequest.Builder destinationPhoneNumber(String 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
SendVoiceMessageRequest.Builder originationPhoneNumber(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SendVoiceMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-