Interface SendMediaMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SendMediaMessageRequest.Builder,
,SendMediaMessageRequest> PinpointSmsVoiceV2Request.Builder
,SdkBuilder<SendMediaMessageRequest.Builder,
,SendMediaMessageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SendMediaMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfigurationSetName
(String configurationSetName) The name of the configuration set to use.You can specify custom data in this field.destinationPhoneNumber
(String destinationPhoneNumber) The destination phone number in E.164 format.When set to true, the message is checked and validated, but isn't sent to the end recipient.The maximum amount that you want to spend, in US dollars, per each MMS message.An array of URLs to each media file to send.mediaUrls
(Collection<String> mediaUrls) An array of URLs to each media file to send.messageBody
(String messageBody) The text body of the message.messageFeedbackEnabled
(Boolean messageFeedbackEnabled) Set to true to enable message feedback for the message.originationIdentity
(String originationIdentity) The origination identity of the message.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.protectConfigurationId
(String protectConfigurationId) The unique identifier of the protect configuration to use.timeToLive
(Integer timeToLive) How long the media message is valid for.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.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Request.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 Details
-
destinationPhoneNumber
The destination phone number in E.164 format.
- Parameters:
destinationPhoneNumber
- The destination phone number in E.164 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originationIdentity
The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
- Parameters:
originationIdentity
- The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageBody
The text body of the message.
- Parameters:
messageBody
- The text body of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mediaUrls
An array of URLs to each media file to send.
The media files have to be stored in an S3 bucket. Supported media file formats are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing objects, see Creating a bucket, Uploading objects in the Amazon S3 User Guide, and Setting up an Amazon S3 bucket for MMS files in the Amazon Web Services End User Messaging SMS User Guide.
- Parameters:
mediaUrls
- An array of URLs to each media file to send.The media files have to be stored in an S3 bucket. Supported media file formats are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing objects, see Creating a bucket, Uploading objects in the Amazon S3 User Guide, and Setting up an Amazon S3 bucket for MMS files in the Amazon Web Services End User Messaging SMS User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mediaUrls
An array of URLs to each media file to send.
The media files have to be stored in an S3 bucket. Supported media file formats are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing objects, see Creating a bucket, Uploading objects in the Amazon S3 User Guide, and Setting up an Amazon S3 bucket for MMS files in the Amazon Web Services End User Messaging SMS User Guide.
- Parameters:
mediaUrls
- An array of URLs to each media file to send.The media files have to be stored in an S3 bucket. Supported media file formats are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing objects, see Creating a bucket, Uploading objects in the Amazon S3 User Guide, and Setting up an Amazon S3 bucket for MMS files in the Amazon Web Services End User Messaging SMS User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationSetName
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
- Parameters:
configurationSetName
- The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxPrice
The maximum amount that you want to spend, in US dollars, per each MMS message.
- Parameters:
maxPrice
- The maximum amount that you want to spend, in US dollars, per each MMS message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeToLive
How long the media message is valid for. By default this is 72 hours.
- Parameters:
timeToLive
- How long the media message is valid for. By default this is 72 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
You can specify custom data in this field. If you do, that data is logged to the event destination.
- Parameters:
context
- You can specify custom data in this field. If you do, that data is logged to the event destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
When set to true, the message is checked and validated, but isn't sent to the end recipient.
- Parameters:
dryRun
- When set to true, the message is checked and validated, but isn't sent to the end recipient.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectConfigurationId
The unique identifier of the protect configuration to use.
- Parameters:
protectConfigurationId
- The unique identifier of the protect configuration to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageFeedbackEnabled
Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.
- Parameters:
messageFeedbackEnabled
- Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using PutMessageFeedback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendMediaMessageRequest.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
SendMediaMessageRequest.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.
-