Class CfnBot.AudioAndDTMFInputSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.AudioAndDTMFInputSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.AudioAndDTMFInputSpecificationProperty>
- Enclosing interface:
CfnBot.AudioAndDTMFInputSpecificationProperty
@Stability(Stable)
public static final class CfnBot.AudioAndDTMFInputSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.AudioAndDTMFInputSpecificationProperty>
A builder for
CfnBot.AudioAndDTMFInputSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaudioSpecification
(IResolvable audioSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getAudioSpecification()
audioSpecification
(CfnBot.AudioSpecificationProperty audioSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getAudioSpecification()
build()
Builds the configured instance.dtmfSpecification
(IResolvable dtmfSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getDtmfSpecification()
dtmfSpecification
(CfnBot.DTMFSpecificationProperty dtmfSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getDtmfSpecification()
startTimeoutMs
(Number startTimeoutMs) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getStartTimeoutMs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
startTimeoutMs
@Stability(Stable) public CfnBot.AudioAndDTMFInputSpecificationProperty.Builder startTimeoutMs(Number startTimeoutMs) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getStartTimeoutMs()
- Parameters:
startTimeoutMs
- Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This parameter is required. This timeout is shared between Audio and DTMF inputs.- Returns:
this
-
audioSpecification
@Stability(Stable) public CfnBot.AudioAndDTMFInputSpecificationProperty.Builder audioSpecification(IResolvable audioSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getAudioSpecification()
- Parameters:
audioSpecification
- Specifies the settings on audio input.- Returns:
this
-
audioSpecification
@Stability(Stable) public CfnBot.AudioAndDTMFInputSpecificationProperty.Builder audioSpecification(CfnBot.AudioSpecificationProperty audioSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getAudioSpecification()
- Parameters:
audioSpecification
- Specifies the settings on audio input.- Returns:
this
-
dtmfSpecification
@Stability(Stable) public CfnBot.AudioAndDTMFInputSpecificationProperty.Builder dtmfSpecification(IResolvable dtmfSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getDtmfSpecification()
- Parameters:
dtmfSpecification
- Specifies the settings on DTMF input.- Returns:
this
-
dtmfSpecification
@Stability(Stable) public CfnBot.AudioAndDTMFInputSpecificationProperty.Builder dtmfSpecification(CfnBot.DTMFSpecificationProperty dtmfSpecification) Sets the value ofCfnBot.AudioAndDTMFInputSpecificationProperty.getDtmfSpecification()
- Parameters:
dtmfSpecification
- Specifies the settings on DTMF input.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.AudioAndDTMFInputSpecificationProperty>
- Returns:
- a new instance of
CfnBot.AudioAndDTMFInputSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-