Class CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.PromptAttemptSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.PromptAttemptSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.PromptAttemptSpecificationProperty>
A builder for
CfnBotPropsMixin.PromptAttemptSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedInputTypes(CfnBotPropsMixin.AllowedInputTypesProperty allowedInputTypes) allowedInputTypes(IResolvable allowedInputTypes) allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAllowInterrupt()allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAllowInterrupt()audioAndDtmfInputSpecification(CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty audioAndDtmfInputSpecification) audioAndDtmfInputSpecification(IResolvable audioAndDtmfInputSpecification) build()Builds the configured instance.textInputSpecification(CfnBotPropsMixin.TextInputSpecificationProperty textInputSpecification) textInputSpecification(IResolvable textInputSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedInputTypes
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder allowedInputTypes(IResolvable allowedInputTypes) - Parameters:
allowedInputTypes- Indicates the allowed input types of the prompt attempt.- Returns:
this
-
allowedInputTypes
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder allowedInputTypes(CfnBotPropsMixin.AllowedInputTypesProperty allowedInputTypes) - Parameters:
allowedInputTypes- Indicates the allowed input types of the prompt attempt.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech prompt attempt from the bot.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAllowInterrupt()- Parameters:
allowInterrupt- Indicates whether the user can interrupt a speech prompt attempt from the bot.- Returns:
this
-
audioAndDtmfInputSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder audioAndDtmfInputSpecification(IResolvable audioAndDtmfInputSpecification) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAudioAndDtmfInputSpecification()- Parameters:
audioAndDtmfInputSpecification- Specifies the settings on audio and DTMF input.- Returns:
this
-
audioAndDtmfInputSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder audioAndDtmfInputSpecification(CfnBotPropsMixin.AudioAndDTMFInputSpecificationProperty audioAndDtmfInputSpecification) Sets the value ofCfnBotPropsMixin.PromptAttemptSpecificationProperty.getAudioAndDtmfInputSpecification()- Parameters:
audioAndDtmfInputSpecification- Specifies the settings on audio and DTMF input.- Returns:
this
-
textInputSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder textInputSpecification(IResolvable textInputSpecification) - Parameters:
textInputSpecification- Specifies the settings on text input.- Returns:
this
-
textInputSpecification
@Stability(Stable) public CfnBotPropsMixin.PromptAttemptSpecificationProperty.Builder textInputSpecification(CfnBotPropsMixin.TextInputSpecificationProperty textInputSpecification) - Parameters:
textInputSpecification- Specifies the settings on text input.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.PromptAttemptSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.PromptAttemptSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-