Interface CfnBot.SlotValueOverrideProperty

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

@Stability(Stable) public static interface CfnBot.SlotValueOverrideProperty extends software.amazon.jsii.JsiiSerializable
The slot values that Amazon Lex uses when it sets slot values in a dialog step.

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_;
 SlotValueOverrideProperty slotValueOverrideProperty = SlotValueOverrideProperty.builder()
         .shape("shape")
         .value(SlotValueProperty.builder()
                 .interpretedValue("interpretedValue")
                 .build())
         .values(List.of(SlotValueOverrideProperty.builder()
                 .shape("shape")
                 .value(SlotValueProperty.builder()
                         .interpretedValue("interpretedValue")
                         .build())
                 .values(List.of(slotValueOverrideProperty_))
                 .build()))
         .build();
 
  • Method Details

    • getShape

      @Stability(Stable) @Nullable default String getShape()
      When the shape value is List , it indicates that the values field contains a list of slot values.

      When the value is Scalar , it indicates that the value field contains a single value.

    • getValue

      @Stability(Stable) @Nullable default Object getValue()
      The current value of the slot.
    • getValues

      @Stability(Stable) @Nullable default Object getValues()
      A list of one or more values that the user provided for the slot.

      For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."

    • builder

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