Interface CfnBot.ImageResponseCardProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.ImageResponseCardProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.ImageResponseCardProperty
extends software.amazon.jsii.JsiiSerializable
A card that is shown to the user by a messaging platform.
You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lex.*; ImageResponseCardProperty imageResponseCardProperty = ImageResponseCardProperty.builder() .title("title") // the properties below are optional .buttons(List.of(ButtonProperty.builder() .text("text") .value("value") .build())) .imageUrl("imageUrl") .subtitle("subtitle") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBot.ImageResponseCardProperty
static final class
An implementation forCfnBot.ImageResponseCardProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
A list of buttons that should be displayed on the response card.default String
The URL of an image to display on the response card.default String
The subtitle to display on the response card.getTitle()
The title to display on the response card.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTitle
The title to display on the response card.The format of the title is determined by the platform displaying the response card.
- See Also:
-
getButtons
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.
- See Also:
-
getImageUrl
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.
- See Also:
-
getSubtitle
The subtitle to display on the response card.The format of the subtitle is determined by the platform displaying the response card.
- See Also:
-
builder
-