Interface GenericAttachment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GenericAttachment.Builder,
,GenericAttachment> SdkBuilder<GenericAttachment.Builder,
,GenericAttachment> SdkPojo
- Enclosing class:
GenericAttachment
public static interface GenericAttachment.Builder
extends SdkPojo, CopyableBuilder<GenericAttachment.Builder,GenericAttachment>
-
Method Summary
Modifier and TypeMethodDescriptionattachmentLinkUrl
(String attachmentLinkUrl) The URL of an attachment to the response card.buttons
(Collection<Button> buttons) The list of options to show to the user.buttons
(Consumer<Button.Builder>... buttons) The list of options to show to the user.The list of options to show to the user.The URL of an image that is displayed to the user.The subtitle shown below the title.The title of the option.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
-
title
The title of the option.
- Parameters:
title
- The title of the option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subTitle
The subtitle shown below the title.
- Parameters:
subTitle
- The subtitle shown below the title.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachmentLinkUrl
The URL of an attachment to the response card.
- Parameters:
attachmentLinkUrl
- The URL of an attachment to the response card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageUrl
The URL of an image that is displayed to the user.
- Parameters:
imageUrl
- The URL of an image that is displayed to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttons
The list of options to show to the user.
- Parameters:
buttons
- The list of options to show to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttons
The list of options to show to the user.
- Parameters:
buttons
- The list of options to show to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaButton.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobuttons(List<Button>)
.- Parameters:
buttons
- a consumer that will call methods onButton.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-