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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResponseCard.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,
ContentTypeResponseCard.Builder contentType(ContentType contentType)
The content type of the response.
contentType - The content type of the response.ContentType,
ContentTypeResponseCard.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 method that creates an instance of theGenericAttachment.Builder avoiding the need to
create one manually via GenericAttachment.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #genericAttachments(List.
genericAttachments - a consumer that will call methods on
GenericAttachment.Builder#genericAttachments(java.util.Collection) Copyright © 2023. All rights reserved.