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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponseCard.BuildercontentType(String contentType)The content type of the response.ResponseCard.BuildercontentType(ContentType contentType)The content type of the response.ResponseCard.BuildergenericAttachments(Collection<GenericAttachment> genericAttachments)An array of attachment objects representing options.ResponseCard.BuildergenericAttachments(Consumer<GenericAttachment.Builder>... genericAttachments)An array of attachment objects representing options.ResponseCard.BuildergenericAttachments(GenericAttachment... genericAttachments)An array of attachment objects representing options.ResponseCard.Builderversion(String version)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 Detail
-
version
ResponseCard.Builder version(String 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
ResponseCard.Builder contentType(String 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,ContentType
-
contentType
ResponseCard.Builder contentType(ContentType 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,ContentType
-
genericAttachments
ResponseCard.Builder genericAttachments(Collection<GenericAttachment> 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
ResponseCard.Builder genericAttachments(GenericAttachment... 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
ResponseCard.Builder genericAttachments(Consumer<GenericAttachment.Builder>... genericAttachments)
An array of attachment objects representing options.
This is a convenience method that creates an instance of theGenericAttachment.Builderavoiding the need to create one manually viaGenericAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#genericAttachments(List.) - 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:
#genericAttachments(java.util.Collection)
-
-