public static interface ResponseCard.Builder extends SdkPojo, CopyableBuilder<ResponseCard.Builder,ResponseCard>
Modifier and Type | Method and Description |
---|---|
ResponseCard.Builder |
contentType(ContentType contentType)
The content type of the response.
|
ResponseCard.Builder |
contentType(String contentType)
The content type of the response.
|
ResponseCard.Builder |
genericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
|
ResponseCard.Builder |
genericAttachments(Consumer<GenericAttachment.Builder>... genericAttachments)
An array of attachment objects representing options.
|
ResponseCard.Builder |
genericAttachments(GenericAttachment... genericAttachments)
An array of attachment objects representing options.
|
ResponseCard.Builder |
version(String version)
The version of the response card format.
|
copy
applyMutation, build
ResponseCard.Builder version(String version)
The version of the response card format.
version
- The version of the response card format.ResponseCard.Builder contentType(String contentType)
The content type of the response.
contentType
- The content type of the response.ContentType
,
ContentType
ResponseCard.Builder contentType(ContentType contentType)
The content type of the response.
contentType
- The content type of the response.ContentType
,
ContentType
ResponseCard.Builder genericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
genericAttachments
- An array of attachment objects representing options.ResponseCard.Builder genericAttachments(GenericAttachment... genericAttachments)
An array of attachment objects representing options.
genericAttachments
- An array of attachment objects representing options.ResponseCard.Builder genericAttachments(Consumer<GenericAttachment.Builder>... genericAttachments)
An array of attachment objects representing options.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #genericAttachments(List)
.genericAttachments
- a consumer that will call methods on List.Builder
#genericAttachments(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.