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