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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.DialogStatePropertystatic final classAn implementation forCfnBot.DialogStateProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDefines the action that the bot executes at runtime when the conversation reaches this step.default ObjectOverride settings to configure the intent state.default ObjectMap of key/value pairs representing session-specific context information.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDialogAction
Defines the action that the bot executes at runtime when the conversation reaches this step.Returns union: either
IResolvableorCfnBot.DialogActionProperty- See Also:
-
getIntent
Override settings to configure the intent state.Returns union: either
IResolvableorCfnBot.IntentOverrideProperty- See Also:
-
getSessionAttributes
Map of key/value pairs representing session-specific context information.It contains application information passed between Amazon Lex and a client application.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBot.SessionAttributeProperty>- See Also:
-
builder
- Returns:
- a
CfnBot.DialogStateProperty.BuilderofCfnBot.DialogStateProperty
-