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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods 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
originationPhoneNumberId
used 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 theoriginationPhoneNumberId
used 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.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
SendWhatsAppMessageRequest.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.
-