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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GenericAttachment.BuilderattachmentLinkUrl(String attachmentLinkUrl)The URL of an attachment to the response card.GenericAttachment.Builderbuttons(Collection<Button> buttons)The list of options to show to the user.GenericAttachment.Builderbuttons(Consumer<Button.Builder>... buttons)The list of options to show to the user.GenericAttachment.Builderbuttons(Button... buttons)The list of options to show to the user.GenericAttachment.BuilderimageUrl(String imageUrl)The URL of an image that is displayed to the user.GenericAttachment.BuildersubTitle(String subTitle)The subtitle shown below the title.GenericAttachment.Buildertitle(String 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 Detail
-
title
GenericAttachment.Builder title(String 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
GenericAttachment.Builder subTitle(String 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
GenericAttachment.Builder attachmentLinkUrl(String 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
GenericAttachment.Builder imageUrl(String 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
GenericAttachment.Builder buttons(Collection<Button> 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
GenericAttachment.Builder buttons(Button... 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
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.Builderavoiding the need to create one manually viaButton.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#buttons(List.- 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:
#buttons(java.util.Collection
-
-