@Stability(value=Stable)
public static interface CfnBot.ImageResponseCardProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.ImageResponseCardProperty.Builder
A builder for
CfnBot.ImageResponseCardProperty |
static class |
CfnBot.ImageResponseCardProperty.Jsii$Proxy
An implementation for
CfnBot.ImageResponseCardProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.ImageResponseCardProperty.Builder |
builder() |
default Object |
getButtons()
A list of buttons that should be displayed on the response card.
|
default String |
getImageUrl()
The URL of an image to display on the response card.
|
default String |
getSubtitle()
The subtitle to display on the response card.
|
String |
getTitle()
The title to display on the response card.
|
@Stability(value=Stable) @NotNull String getTitle()
The format of the title is determined by the platform displaying the response card.
@Stability(value=Stable) @Nullable default Object getButtons()
The arrangement of the buttons is determined by the platform that displays the buttons.
@Stability(value=Stable) @Nullable default String getImageUrl()
The image URL must be publicly available so that the platform displaying the response card has access to the image.
@Stability(value=Stable) @Nullable default String getSubtitle()
The format of the subtitle is determined by the platform displaying the response card.
@Stability(value=Stable) static CfnBot.ImageResponseCardProperty.Builder builder()
Copyright © 2022. All rights reserved.