Interface CfnBot.PromptSpecificationProperty

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

@Stability(Stable) public static interface CfnBot.PromptSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.

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.*;
 PromptSpecificationProperty promptSpecificationProperty = 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();
 

See Also: