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();
 
  • Method Details

    • getText

      @Stability(Stable) @NotNull String getText()
      The text that appears on the button.

      Use this to tell the user what value is returned when they choose this button.

    • getValue

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) static CfnBot.ButtonProperty.Builder builder()
      Returns:
      a CfnBot.ButtonProperty.Builder of CfnBot.ButtonProperty