Class CfnBot.AudioSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.AudioSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.AudioSpecificationProperty>
- Enclosing interface:
CfnBot.AudioSpecificationProperty
@Stability(Stable)
public static final class CfnBot.AudioSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.AudioSpecificationProperty>
A builder for
CfnBot.AudioSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endTimeoutMs
(Number endTimeoutMs) Sets the value ofCfnBot.AudioSpecificationProperty.getEndTimeoutMs()
maxLengthMs
(Number maxLengthMs) Sets the value ofCfnBot.AudioSpecificationProperty.getMaxLengthMs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endTimeoutMs
@Stability(Stable) public CfnBot.AudioSpecificationProperty.Builder endTimeoutMs(Number endTimeoutMs) Sets the value ofCfnBot.AudioSpecificationProperty.getEndTimeoutMs()
- Parameters:
endTimeoutMs
- Time for which a bot waits after the customer stops speaking to assume the utterance is finished. This parameter is required.- Returns:
this
-
maxLengthMs
Sets the value ofCfnBot.AudioSpecificationProperty.getMaxLengthMs()
- Parameters:
maxLengthMs
- Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.AudioSpecificationProperty>
- Returns:
- a new instance of
CfnBot.AudioSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-