Class CfnBotPropsMixin.DTMFSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.DTMFSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.DTMFSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.DTMFSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.DTMFSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.DTMFSpecificationProperty>
A builder for
CfnBotPropsMixin.DTMFSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deletionCharacter(String deletionCharacter) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getDeletionCharacter()endCharacter(String endCharacter) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getEndCharacter()endTimeoutMs(Number endTimeoutMs) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getEndTimeoutMs()Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getMaxLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deletionCharacter
@Stability(Stable) public CfnBotPropsMixin.DTMFSpecificationProperty.Builder deletionCharacter(String deletionCharacter) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getDeletionCharacter()- Parameters:
deletionCharacter- The DTMF character that clears the accumulated DTMF digits and immediately ends the input.- Returns:
this
-
endCharacter
@Stability(Stable) public CfnBotPropsMixin.DTMFSpecificationProperty.Builder endCharacter(String endCharacter) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getEndCharacter()- Parameters:
endCharacter- The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.- Returns:
this
-
endTimeoutMs
@Stability(Stable) public CfnBotPropsMixin.DTMFSpecificationProperty.Builder endTimeoutMs(Number endTimeoutMs) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getEndTimeoutMs()- Parameters:
endTimeoutMs- How long the bot should wait after the last DTMF character input before assuming that the input has concluded.- Returns:
this
-
maxLength
@Stability(Stable) public CfnBotPropsMixin.DTMFSpecificationProperty.Builder maxLength(Number maxLength) Sets the value ofCfnBotPropsMixin.DTMFSpecificationProperty.getMaxLength()- Parameters:
maxLength- The maximum number of DTMF digits allowed in an utterance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.DTMFSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.DTMFSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-