@Stability(value=Stable)
public static interface CfnBot.PromptSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.PromptSpecificationProperty.Builder
A builder for
CfnBot.PromptSpecificationProperty |
static class |
CfnBot.PromptSpecificationProperty.Jsii$Proxy
An implementation for
CfnBot.PromptSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.PromptSpecificationProperty.Builder |
builder() |
default Object |
getAllowInterrupt()
Indicates whether the user can interrupt a speech prompt from the bot.
|
Number |
getMaxRetries()
The maximum number of times the bot tries to elicit a response from the user using this prompt.
|
Object |
getMessageGroupsList()
A collection of responses that Amazon Lex can send to the user.
|
default String |
getMessageSelectionStrategy()
`CfnBot.PromptSpecificationProperty.MessageSelectionStrategy`.
|
default Object |
getPromptAttemptsSpecification()
`CfnBot.PromptSpecificationProperty.PromptAttemptsSpecification`.
|
@Stability(value=Stable) @NotNull Number getMaxRetries()
@Stability(value=Stable) @NotNull Object getMessageGroupsList()
Amazon Lex chooses the actual response to send at runtime.
@Stability(value=Stable) @Nullable default Object getAllowInterrupt()
@Stability(value=Stable) @Nullable default String getMessageSelectionStrategy()
@Stability(value=Stable) @Nullable default Object getPromptAttemptsSpecification()
@Stability(value=Stable) static CfnBot.PromptSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.