Interface SendWhatsAppMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendWhatsAppMessageRequest.Builder,,SendWhatsAppMessageRequest> SdkBuilder<SendWhatsAppMessageRequest.Builder,,SendWhatsAppMessageRequest> SdkPojo,SdkRequest.Builder,SocialMessagingRequest.Builder
- Enclosing class:
SendWhatsAppMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe message to send through WhatsApp.metaApiVersion(String metaApiVersion) The API version for the request formatted asv{VersionNumber}.originationPhoneNumberId(String originationPhoneNumberId) The ID of the phone number used to send the WhatsApp 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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.socialmessaging.model.SocialMessagingRequest.Builder
build
-
Method Details
-
originationPhoneNumberId
The ID of the phone number used to send the WhatsApp message. If you are sending a media file only the
originationPhoneNumberIdused to upload the file can be used. Phone number identifiers are formatted asphone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.- Parameters:
originationPhoneNumberId- The ID of the phone number used to send the WhatsApp message. If you are sending a media file only theoriginationPhoneNumberIdused to upload the file can be used. Phone number identifiers are formatted asphone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
The message to send through WhatsApp. The length is in KB. The message field passes through a WhatsApp Message object, see Messages in the WhatsApp Business Platform Cloud API Reference.
- Parameters:
message- The message to send through WhatsApp. The length is in KB. The message field passes through a WhatsApp Message object, see Messages in the WhatsApp Business Platform Cloud API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaApiVersion
The API version for the request formatted as
v{VersionNumber}. For a list of supported API versions and Amazon Web Services Regions, see Amazon Web Services End User Messaging Social API Service Endpoints in the Amazon Web Services General Reference.- Parameters:
metaApiVersion- The API version for the request formatted asv{VersionNumber}. For a list of supported API versions and Amazon Web Services Regions, see Amazon Web Services End User Messaging Social API Service Endpoints in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendWhatsAppMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendWhatsAppMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-