Interface ImageResponseCard.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageResponseCard.Builder,
,ImageResponseCard> SdkBuilder<ImageResponseCard.Builder,
,ImageResponseCard> SdkPojo
- Enclosing class:
ImageResponseCard
-
Method Summary
Modifier and TypeMethodDescriptionbuttons
(Collection<Button> buttons) A list of buttons that should be displayed on the response card.buttons
(Consumer<Button.Builder>... buttons) A list of buttons that should be displayed on the response card.A list of buttons that should be displayed on the response card.The URL of an image to display on the response card.The subtitle to display on the response card.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, sdkFields
-
Method Details
-
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
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
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
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
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
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.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:
-