Interface CfnBot.DialogStateProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnBot.DialogStateProperty.Jsii$Proxy
Enclosing class:
CfnBot

@Stability(Stable) public static interface CfnBot.DialogStateProperty extends software.amazon.jsii.JsiiSerializable
The current state of the conversation with the 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.*;
 SlotValueOverrideProperty slotValueOverrideProperty_;
 DialogStateProperty dialogStateProperty = DialogStateProperty.builder()
         .dialogAction(DialogActionProperty.builder()
                 .type("type")
                 // the properties below are optional
                 .slotToElicit("slotToElicit")
                 .suppressNextMessage(false)
                 .build())
         .intent(IntentOverrideProperty.builder()
                 .name("name")
                 .slots(List.of(SlotValueOverrideMapProperty.builder()
                         .slotName("slotName")
                         .slotValueOverride(SlotValueOverrideProperty.builder()
                                 .shape("shape")
                                 .value(SlotValueProperty.builder()
                                         .interpretedValue("interpretedValue")
                                         .build())
                                 .values(List.of(slotValueOverrideProperty_))
                                 .build())
                         .build()))
                 .build())
         .sessionAttributes(List.of(SessionAttributeProperty.builder()
                 .key("key")
                 // the properties below are optional
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getDialogAction

      @Stability(Stable) @Nullable default Object getDialogAction()
      Defines the action that the bot executes at runtime when the conversation reaches this step.
    • getIntent

      @Stability(Stable) @Nullable default Object getIntent()
      Override settings to configure the intent state.
    • getSessionAttributes

      @Stability(Stable) @Nullable default Object getSessionAttributes()
      Map of key/value pairs representing session-specific context information.

      It contains application information passed between Amazon Lex and a client application.

    • builder

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