Interface CfnBotPropsMixin.ConditionalSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBotPropsMixin.ConditionalSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnBotPropsMixin
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBotPropsMixin.ConditionalSpecificationPropertystatic final classAn implementation forCfnBotPropsMixin.ConditionalSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConditionalBranches
A list of conditional branches.A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBotPropsMixin.ConditionalBranchProperty>- See Also:
-
getDefaultBranch
The conditional branch that should be followed when the conditions for other branches are not satisfied.A conditional branch is made up of a condition, a response and a next step.
Returns union: either
IResolvableorCfnBotPropsMixin.DefaultConditionalBranchProperty- See Also:
-
getIsActive
Determines whether a conditional branch is active.When
IsActiveis false, the conditions are not evaluated.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-