public static interface GenericAttachment.Builder extends SdkPojo, CopyableBuilder<GenericAttachment.Builder,GenericAttachment>
| Modifier and Type | Method and Description |
|---|---|
GenericAttachment.Builder |
attachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
|
GenericAttachment.Builder |
buttons(Button... buttons)
The list of options to show to the user.
|
GenericAttachment.Builder |
buttons(Collection<Button> buttons)
The list of options to show to the user.
|
GenericAttachment.Builder |
buttons(Consumer<Button.Builder>... buttons)
The list of options to show to the user.
|
GenericAttachment.Builder |
imageUrl(String imageUrl)
The URL of an image that is displayed to the user.
|
GenericAttachment.Builder |
subTitle(String subTitle)
The subtitle shown below the title.
|
GenericAttachment.Builder |
title(String title)
The title of the option.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildGenericAttachment.Builder title(String title)
The title of the option.
title - The title of the option.GenericAttachment.Builder subTitle(String subTitle)
The subtitle shown below the title.
subTitle - The subtitle shown below the title.GenericAttachment.Builder attachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
attachmentLinkUrl - The URL of an attachment to the response card.GenericAttachment.Builder imageUrl(String imageUrl)
The URL of an image that is displayed to the user.
imageUrl - The URL of an image that is displayed to the user.GenericAttachment.Builder buttons(Collection<Button> buttons)
The list of options to show to the user.
buttons - The list of options to show to the user.GenericAttachment.Builder buttons(Button... buttons)
The list of options to show to the user.
buttons - The list of options to show to the user.GenericAttachment.Builder buttons(Consumer<Button.Builder>... buttons)
The list of options to show to the user.
This is a convenience method that creates an instance of theButton.Builder avoiding the need to create one
manually via Button.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #buttons(List.
buttons - a consumer that will call methods on
Button.Builder#buttons(java.util.CollectionCopyright © 2023. All rights reserved.