Class CfnBotPropsMixin.VoiceSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.VoiceSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.VoiceSettingsProperty>
- Enclosing interface:
CfnBotPropsMixin.VoiceSettingsProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.VoiceSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.VoiceSettingsProperty>
A builder for
CfnBotPropsMixin.VoiceSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.VoiceSettingsProperty.getEngine()Sets the value ofCfnBotPropsMixin.VoiceSettingsProperty.getVoiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofCfnBotPropsMixin.VoiceSettingsProperty.getEngine()- Parameters:
engine- Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see theengineparameter of theSynthesizeSpeechoperation in the Amazon Polly developer guide .If you do not specify a value, the default is
standard.- Returns:
this
-
voiceId
Sets the value ofCfnBotPropsMixin.VoiceSettingsProperty.getVoiceId()- Parameters:
voiceId- The identifier of the Amazon Polly voice to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.VoiceSettingsProperty>- Returns:
- a new instance of
CfnBotPropsMixin.VoiceSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-