Interface ImageResponseCard.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImageResponseCard.Builder,ImageResponseCard>,SdkBuilder<ImageResponseCard.Builder,ImageResponseCard>,SdkPojo
- Enclosing class:
- ImageResponseCard
public static interface ImageResponseCard.Builder extends SdkPojo, CopyableBuilder<ImageResponseCard.Builder,ImageResponseCard>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageResponseCard.Builderbuttons(Collection<Button> buttons)A list of buttons that should be displayed on the response card.ImageResponseCard.Builderbuttons(Consumer<Button.Builder>... buttons)A list of buttons that should be displayed on the response card.ImageResponseCard.Builderbuttons(Button... buttons)A list of buttons that should be displayed on the response card.ImageResponseCard.BuilderimageUrl(String imageUrl)The URL of an image to display on the response card.ImageResponseCard.Buildersubtitle(String subtitle)The subtitle to display on the response card.ImageResponseCard.Buildertitle(String title)The title to display on the response card.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
title
ImageResponseCard.Builder title(String title)
The title to display on the response card. The format of the title is determined by the platform displaying the response card.
- Parameters:
title- The title to display on the response card. The format of the title is determined by the platform displaying the response card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subtitle
ImageResponseCard.Builder subtitle(String subtitle)
The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
- Parameters:
subtitle- The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageUrl
ImageResponseCard.Builder imageUrl(String imageUrl)
The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
- Parameters:
imageUrl- The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttons
ImageResponseCard.Builder buttons(Collection<Button> buttons)
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
- Parameters:
buttons- A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttons
ImageResponseCard.Builder buttons(Button... buttons)
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
- Parameters:
buttons- A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttons
ImageResponseCard.Builder buttons(Consumer<Button.Builder>... buttons)
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
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
-
-