Interface ListWhatsAppMessageTemplatesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListWhatsAppMessageTemplatesResponse.Builder,,ListWhatsAppMessageTemplatesResponse> SdkBuilder<ListWhatsAppMessageTemplatesResponse.Builder,,ListWhatsAppMessageTemplatesResponse> SdkPojo,SdkResponse.Builder,SocialMessagingResponse.Builder
- Enclosing class:
ListWhatsAppMessageTemplatesResponse
@Mutable
@NotThreadSafe
public static interface ListWhatsAppMessageTemplatesResponse.Builder
extends SocialMessagingResponse.Builder, SdkPojo, CopyableBuilder<ListWhatsAppMessageTemplatesResponse.Builder,ListWhatsAppMessageTemplatesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to retrieve the next page of results, if any.templates(Collection<TemplateSummary> templates) A list of template summaries.templates(Consumer<TemplateSummary.Builder>... templates) A list of template summaries.templates(TemplateSummary... templates) A list of template summaries.Methods 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.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.socialmessaging.model.SocialMessagingResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
templates
A list of template summaries.
- Parameters:
templates- A list of template summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templates
A list of template summaries.
- Parameters:
templates- A list of template summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templates
ListWhatsAppMessageTemplatesResponse.Builder templates(Consumer<TemplateSummary.Builder>... templates) A list of template summaries.
This is a convenience method that creates an instance of theTemplateSummary.Builderavoiding the need to create one manually viaTemplateSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplates(List<TemplateSummary>).- Parameters:
templates- a consumer that will call methods onTemplateSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to retrieve the next page of results, if any.
- Parameters:
nextToken- The token to retrieve the next page of results, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-