Interface CfnBot.ConditionalSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.ConditionalSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnBot
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.services.lex.*;
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()
.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())
// the properties below are optional
.response(ResponseSpecificationProperty.builder()
.messageGroupsList(List.of(MessageGroupProperty.builder()
.message(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build())
// the properties below are optional
.variations(List.of(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build()))
.build()))
// the properties below are optional
.allowInterrupt(false)
.build())
.build()))
.defaultBranch(DefaultConditionalBranchProperty.builder()
.nextStep(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())
.response(ResponseSpecificationProperty.builder()
.messageGroupsList(List.of(MessageGroupProperty.builder()
.message(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build())
// the properties below are optional
.variations(List.of(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build()))
.build()))
// the properties below are optional
.allowInterrupt(false)
.build())
.build())
.isActive(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.ConditionalSpecificationPropertystatic final classAn implementation forCfnBot.ConditionalSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of conditional branches.The conditional branch that should be followed when the conditions for other branches are not satisfied.Determines whether a conditional branch is active.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: '<'eitherIResolvableorCfnBot.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
IResolvableorCfnBot.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
-