Interface CfnBot.SlotProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.SlotProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.SlotProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the definition of a slot.
Amazon Lex elicits slot values from uses to fulfill the user's intent.
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_; SlotProperty slotProperty = SlotProperty.builder() .name("name") .slotTypeName("slotTypeName") .valueElicitationSetting(SlotValueElicitationSettingProperty.builder() .slotConstraint("slotConstraint") // the properties below are optional .defaultValueSpecification(SlotDefaultValueSpecificationProperty.builder() .defaultValueList(List.of(SlotDefaultValueProperty.builder() .defaultValue("defaultValue") .build())) .build()) .promptSpecification(PromptSpecificationProperty.builder() .maxRetries(123) .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) .messageSelectionStrategy("messageSelectionStrategy") .promptAttemptsSpecification(Map.of( "promptAttemptsSpecificationKey", PromptAttemptSpecificationProperty.builder() .allowedInputTypes(AllowedInputTypesProperty.builder() .allowAudioInput(false) .allowDtmfInput(false) .build()) // the properties below are optional .allowInterrupt(false) .audioAndDtmfInputSpecification(AudioAndDTMFInputSpecificationProperty.builder() .startTimeoutMs(123) // the properties below are optional .audioSpecification(AudioSpecificationProperty.builder() .endTimeoutMs(123) .maxLengthMs(123) .build()) .dtmfSpecification(DTMFSpecificationProperty.builder() .deletionCharacter("deletionCharacter") .endCharacter("endCharacter") .endTimeoutMs(123) .maxLength(123) .build()) .build()) .textInputSpecification(TextInputSpecificationProperty.builder() .startTimeoutMs(123) .build()) .build())) .build()) .sampleUtterances(List.of(SampleUtteranceProperty.builder() .utterance("utterance") .build())) .slotCaptureSetting(SlotCaptureSettingProperty.builder() .captureConditional(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()) .captureNextStep(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()) .captureResponse(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()) .codeHook(DialogCodeHookInvocationSettingProperty.builder() .enableCodeHookInvocation(false) .isActive(false) .postCodeHookSpecification(PostDialogCodeHookInvocationSpecificationProperty.builder() .failureConditional(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()) .failureNextStep(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()) .failureResponse(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()) .successConditional(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()) .successNextStep(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()) .successResponse(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()) .timeoutConditional(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()) .timeoutNextStep(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()) .timeoutResponse(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()) // the properties below are optional .invocationLabel("invocationLabel") .build()) .elicitationCodeHook(ElicitationCodeHookInvocationSettingProperty.builder() .enableCodeHookInvocation(false) // the properties below are optional .invocationLabel("invocationLabel") .build()) .failureConditional(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()) .failureNextStep(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()) .failureResponse(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()) .waitAndContinueSpecification(WaitAndContinueSpecificationProperty.builder() .continueResponse(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()) .waitingResponse(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()) // the properties below are optional .isActive(false) .stillWaitingResponse(StillWaitingResponseSpecificationProperty.builder() .frequencyInSeconds(123) .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())) .timeoutInSeconds(123) // the properties below are optional .allowInterrupt(false) .build()) .build()) .build()) // the properties below are optional .description("description") .multipleValuesSetting(MultipleValuesSettingProperty.builder() .allowMultipleValues(false) .build()) .obfuscationSetting(ObfuscationSettingProperty.builder() .obfuscationSettingType("obfuscationSettingType") .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBot.SlotProperty
static final class
An implementation forCfnBot.SlotProperty
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnBot.SlotProperty.Builder
builder()
default String
The description of the slot.default Object
Indicates whether a slot can return multiple values.getName()
The name given to the slot.default Object
Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs.The name of the slot type that this slot is based on.Determines the slot resolution strategy that Amazon Lex uses to return slot type values.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name given to the slot. -
getSlotTypeName
The name of the slot type that this slot is based on.The slot type defines the acceptable values for the slot.
-
getValueElicitationSetting
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.The field can be set to one of the following values:
- ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to a slot value.
- TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the
valueSelectionStrategy
, the default isORIGINAL_VALUE
. -
getDescription
The description of the slot. -
getMultipleValuesSetting
Indicates whether a slot can return multiple values. -
getObfuscationSetting
Determines whether the contents of the slot are obfuscated in Amazon CloudWatch Logs logs.Use obfuscated slots to protect information such as personally identifiable information (PII) in logs.
-
builder
- Returns:
- a
CfnBot.SlotProperty.Builder
ofCfnBot.SlotProperty
-