Interface CfnBotPropsMixin.ConditionalSpecificationProperty

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

@Stability(Stable) public static interface CfnBotPropsMixin.ConditionalSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Provides a list of conditional branches.

Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.mixins.preview.services.lex.mixins.*;
 SlotValueOverrideProperty slotValueOverrideProperty_;
 ConditionalSpecificationProperty conditionalSpecificationProperty = ConditionalSpecificationProperty.builder()
         .conditionalBranches(List.of(ConditionalBranchProperty.builder()
                 .condition(ConditionProperty.builder()
                         .expressionString("expressionString")
                         .build())
                 .name("name")
                 .nextStep(DialogStateProperty.builder()
                         .dialogAction(DialogActionProperty.builder()
                                 .slotToElicit("slotToElicit")
                                 .suppressNextMessage(false)
                                 .type("type")
                                 .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")
                                 .value("value")
                                 .build()))
                         .build())
                 .response(ResponseSpecificationProperty.builder()
                         .allowInterrupt(false)
                         .messageGroupsList(List.of(MessageGroupProperty.builder()
                                 .message(MessageProperty.builder()
                                         .customPayload(CustomPayloadProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .imageResponseCard(ImageResponseCardProperty.builder()
                                                 .buttons(List.of(ButtonProperty.builder()
                                                         .text("text")
                                                         .value("value")
                                                         .build()))
                                                 .imageUrl("imageUrl")
                                                 .subtitle("subtitle")
                                                 .title("title")
                                                 .build())
                                         .plainTextMessage(PlainTextMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .ssmlMessage(SSMLMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .build())
                                 .variations(List.of(MessageProperty.builder()
                                         .customPayload(CustomPayloadProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .imageResponseCard(ImageResponseCardProperty.builder()
                                                 .buttons(List.of(ButtonProperty.builder()
                                                         .text("text")
                                                         .value("value")
                                                         .build()))
                                                 .imageUrl("imageUrl")
                                                 .subtitle("subtitle")
                                                 .title("title")
                                                 .build())
                                         .plainTextMessage(PlainTextMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .ssmlMessage(SSMLMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .build()))
                                 .build()))
                         .build())
                 .build()))
         .defaultBranch(DefaultConditionalBranchProperty.builder()
                 .nextStep(DialogStateProperty.builder()
                         .dialogAction(DialogActionProperty.builder()
                                 .slotToElicit("slotToElicit")
                                 .suppressNextMessage(false)
                                 .type("type")
                                 .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")
                                 .value("value")
                                 .build()))
                         .build())
                 .response(ResponseSpecificationProperty.builder()
                         .allowInterrupt(false)
                         .messageGroupsList(List.of(MessageGroupProperty.builder()
                                 .message(MessageProperty.builder()
                                         .customPayload(CustomPayloadProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .imageResponseCard(ImageResponseCardProperty.builder()
                                                 .buttons(List.of(ButtonProperty.builder()
                                                         .text("text")
                                                         .value("value")
                                                         .build()))
                                                 .imageUrl("imageUrl")
                                                 .subtitle("subtitle")
                                                 .title("title")
                                                 .build())
                                         .plainTextMessage(PlainTextMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .ssmlMessage(SSMLMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .build())
                                 .variations(List.of(MessageProperty.builder()
                                         .customPayload(CustomPayloadProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .imageResponseCard(ImageResponseCardProperty.builder()
                                                 .buttons(List.of(ButtonProperty.builder()
                                                         .text("text")
                                                         .value("value")
                                                         .build()))
                                                 .imageUrl("imageUrl")
                                                 .subtitle("subtitle")
                                                 .title("title")
                                                 .build())
                                         .plainTextMessage(PlainTextMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .ssmlMessage(SSMLMessageProperty.builder()
                                                 .value("value")
                                                 .build())
                                         .build()))
                                 .build()))
                         .build())
                 .build())
         .isActive(false)
         .build();
 

See Also: