Class CfnBot.SpeechFoundationModelProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SpeechFoundationModelProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SpeechFoundationModelProperty>
- Enclosing interface:
CfnBot.SpeechFoundationModelProperty
@Stability(Stable)
public static final class CfnBot.SpeechFoundationModelProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SpeechFoundationModelProperty>
A builder for
CfnBot.SpeechFoundationModelProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBot.SpeechFoundationModelProperty.getModelArn()Sets the value ofCfnBot.SpeechFoundationModelProperty.getVoiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelArn
Sets the value ofCfnBot.SpeechFoundationModelProperty.getModelArn()- Parameters:
modelArn- the value to be set. This parameter is required.- Returns:
this
-
voiceId
Sets the value ofCfnBot.SpeechFoundationModelProperty.getVoiceId()- Parameters:
voiceId- The identifier of the voice to use for speech synthesis with the foundation model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.SpeechFoundationModelProperty>- Returns:
- a new instance of
CfnBot.SpeechFoundationModelProperty - Throws:
NullPointerException- if any required attribute was not provided
-