Interface ResponseCard.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseCard.Builder,
,ResponseCard> SdkBuilder<ResponseCard.Builder,
,ResponseCard> SdkPojo
- Enclosing class:
ResponseCard
public static interface ResponseCard.Builder
extends SdkPojo, CopyableBuilder<ResponseCard.Builder,ResponseCard>
-
Method Summary
Modifier and TypeMethodDescriptioncontentType
(String contentType) The content type of the response.contentType
(ContentType contentType) The content type of the response.genericAttachments
(Collection<GenericAttachment> genericAttachments) An array of attachment objects representing options.genericAttachments
(Consumer<GenericAttachment.Builder>... genericAttachments) An array of attachment objects representing options.genericAttachments
(GenericAttachment... genericAttachments) An array of attachment objects representing options.The version of the response card format.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, sdkFields
-
Method Details
-
version
The version of the response card format.
- Parameters:
version
- The version of the response card format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
The content type of the response.
- Parameters:
contentType
- The content type of the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentType
The content type of the response.
- Parameters:
contentType
- The content type of the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
genericAttachments
An array of attachment objects representing options.
- Parameters:
genericAttachments
- An array of attachment objects representing options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
genericAttachments
An array of attachment objects representing options.
- Parameters:
genericAttachments
- An array of attachment objects representing options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
genericAttachments
An array of attachment objects representing options.
This is a convenience method that creates an instance of theGenericAttachment.Builder
avoiding the need to create one manually viaGenericAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togenericAttachments(List<GenericAttachment>)
.- Parameters:
genericAttachments
- a consumer that will call methods onGenericAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-