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