Interface CreateWhatsAppMessageTemplateFromLibraryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateWhatsAppMessageTemplateFromLibraryRequest.Builder,,CreateWhatsAppMessageTemplateFromLibraryRequest> SdkBuilder<CreateWhatsAppMessageTemplateFromLibraryRequest.Builder,,CreateWhatsAppMessageTemplateFromLibraryRequest> SdkPojo,SdkRequest.Builder,SocialMessagingRequest.Builder
- Enclosing class:
CreateWhatsAppMessageTemplateFromLibraryRequest
@Mutable
@NotThreadSafe
public static interface CreateWhatsAppMessageTemplateFromLibraryRequest.Builder
extends SocialMessagingRequest.Builder, SdkPojo, CopyableBuilder<CreateWhatsAppMessageTemplateFromLibraryRequest.Builder,CreateWhatsAppMessageTemplateFromLibraryRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the WhatsApp Business Account to associate with this template.metaLibraryTemplate(Consumer<MetaLibraryTemplate.Builder> metaLibraryTemplate) The template configuration from Meta's library, including customizations for buttons and body text.metaLibraryTemplate(MetaLibraryTemplate metaLibraryTemplate) The template configuration from Meta's library, including customizations for buttons and body text.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
-
metaLibraryTemplate
CreateWhatsAppMessageTemplateFromLibraryRequest.Builder metaLibraryTemplate(MetaLibraryTemplate metaLibraryTemplate) The template configuration from Meta's library, including customizations for buttons and body text.
- Parameters:
metaLibraryTemplate- The template configuration from Meta's library, including customizations for buttons and body text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaLibraryTemplate
default CreateWhatsAppMessageTemplateFromLibraryRequest.Builder metaLibraryTemplate(Consumer<MetaLibraryTemplate.Builder> metaLibraryTemplate) The template configuration from Meta's library, including customizations for buttons and body text.
This is a convenience method that creates an instance of theMetaLibraryTemplate.Builderavoiding the need to create one manually viaMetaLibraryTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometaLibraryTemplate(MetaLibraryTemplate).- Parameters:
metaLibraryTemplate- a consumer that will call methods onMetaLibraryTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The ID of the WhatsApp Business Account to associate with this template.
- Parameters:
id- The ID of the WhatsApp Business Account to associate with this template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateWhatsAppMessageTemplateFromLibraryRequest.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
CreateWhatsAppMessageTemplateFromLibraryRequest.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.
-