Interface CfnBot.PromptAttemptSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBot.PromptAttemptSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnBot
@Stability(Stable)
public static interface CfnBot.PromptAttemptSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the settings on a prompt attempt.
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.*;
PromptAttemptSpecificationProperty promptAttemptSpecificationProperty = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBot.PromptAttemptSpecificationPropertystatic final classAn implementation forCfnBot.PromptAttemptSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Indicates the allowed input types of the prompt attempt.default ObjectIndicates whether the user can interrupt a speech prompt attempt from the bot.default ObjectSpecifies the settings on audio and DTMF input.default ObjectSpecifies the settings on text input.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowedInputTypes
Indicates the allowed input types of the prompt attempt.Returns union: either
IResolvableorCfnBot.AllowedInputTypesProperty- See Also:
-
getAllowInterrupt
Indicates whether the user can interrupt a speech prompt attempt from the bot.Returns union: either
BooleanorIResolvable- See Also:
-
getAudioAndDtmfInputSpecification
Specifies the settings on audio and DTMF input.Returns union: either
IResolvableorCfnBot.AudioAndDTMFInputSpecificationProperty- See Also:
-
getTextInputSpecification
Specifies the settings on text input.Returns union: either
IResolvableorCfnBot.TextInputSpecificationProperty- See Also:
-
builder
-