Interface CfnBot.ButtonProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.ButtonProperty.Jsii$Proxy
- Enclosing class:
- CfnBot
@Stability(Stable)
public static interface CfnBot.ButtonProperty
extends software.amazon.jsii.JsiiSerializable
Describes a button to use on a response card used to gather slot values from a user.
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.*; ButtonProperty buttonProperty = ButtonProperty.builder() .text("text") .value("value") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBot.ButtonProperty
static final class
An implementation forCfnBot.ButtonProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getText
The text that appears on the button.Use this to tell the user what value is returned when they choose this button.
-
getValue
The value returned to Amazon Lex when the user chooses this button.This must be one of the slot values configured for the slot.
-
builder
- Returns:
- a
CfnBot.ButtonProperty.Builder
ofCfnBot.ButtonProperty
-