Class CfnBotPropsMixin.SpeechFoundationModelProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SpeechFoundationModelProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SpeechFoundationModelProperty>
- Enclosing interface:
CfnBotPropsMixin.SpeechFoundationModelProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SpeechFoundationModelProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SpeechFoundationModelProperty>
A builder for
CfnBotPropsMixin.SpeechFoundationModelProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.SpeechFoundationModelProperty.getModelArn()Sets the value ofCfnBotPropsMixin.SpeechFoundationModelProperty.getVoiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelArn
@Stability(Stable) public CfnBotPropsMixin.SpeechFoundationModelProperty.Builder modelArn(String modelArn) Sets the value ofCfnBotPropsMixin.SpeechFoundationModelProperty.getModelArn()- Parameters:
modelArn- the value to be set.- Returns:
this
-
voiceId
@Stability(Stable) public CfnBotPropsMixin.SpeechFoundationModelProperty.Builder voiceId(String voiceId) Sets the value ofCfnBotPropsMixin.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<CfnBotPropsMixin.SpeechFoundationModelProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SpeechFoundationModelProperty - Throws:
NullPointerException- if any required attribute was not provided
-