Class CfnBot.BotLocaleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.BotLocaleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.BotLocaleProperty>
- Enclosing interface:
CfnBot.BotLocaleProperty
@Stability(Stable)
public static final class CfnBot.BotLocaleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.BotLocaleProperty>
A builder for
CfnBot.BotLocaleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customVocabulary
(IResolvable customVocabulary) Sets the value ofCfnBot.BotLocaleProperty.getCustomVocabulary()
customVocabulary
(CfnBot.CustomVocabularyProperty customVocabulary) Sets the value ofCfnBot.BotLocaleProperty.getCustomVocabulary()
description
(String description) Sets the value ofCfnBot.BotLocaleProperty.getDescription()
Sets the value ofCfnBot.BotLocaleProperty.getIntents()
intents
(IResolvable intents) Sets the value ofCfnBot.BotLocaleProperty.getIntents()
Sets the value ofCfnBot.BotLocaleProperty.getLocaleId()
nluConfidenceThreshold
(Number nluConfidenceThreshold) Sets the value ofCfnBot.BotLocaleProperty.getNluConfidenceThreshold()
Sets the value ofCfnBot.BotLocaleProperty.getSlotTypes()
slotTypes
(IResolvable slotTypes) Sets the value ofCfnBot.BotLocaleProperty.getSlotTypes()
voiceSettings
(IResolvable voiceSettings) Sets the value ofCfnBot.BotLocaleProperty.getVoiceSettings()
voiceSettings
(CfnBot.VoiceSettingsProperty voiceSettings) Sets the value ofCfnBot.BotLocaleProperty.getVoiceSettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
localeId
Sets the value ofCfnBot.BotLocaleProperty.getLocaleId()
- Parameters:
localeId
- The identifier of the language and locale that the bot will be used in. This parameter is required. The string must match one of the supported locales.- Returns:
this
-
nluConfidenceThreshold
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder nluConfidenceThreshold(Number nluConfidenceThreshold) Sets the value ofCfnBot.BotLocaleProperty.getNluConfidenceThreshold()
- Parameters:
nluConfidenceThreshold
- Determines the threshold where Amazon Lex will insert theAMAZON.FallbackIntent
,AMAZON.KendraSearchIntent
, or both when returning alternative intents. You must configure anAMAZON.FallbackIntent
.AMAZON.KendraSearchIntent
is only inserted if it is configured for the bot. This parameter is required.- Returns:
this
-
customVocabulary
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder customVocabulary(IResolvable customVocabulary) Sets the value ofCfnBot.BotLocaleProperty.getCustomVocabulary()
- Parameters:
customVocabulary
- Specifies a custom vocabulary to use with a specific locale.- Returns:
this
-
customVocabulary
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder customVocabulary(CfnBot.CustomVocabularyProperty customVocabulary) Sets the value ofCfnBot.BotLocaleProperty.getCustomVocabulary()
- Parameters:
customVocabulary
- Specifies a custom vocabulary to use with a specific locale.- Returns:
this
-
description
Sets the value ofCfnBot.BotLocaleProperty.getDescription()
- Parameters:
description
- A description of the bot locale. Use this to help identify the bot locale in lists.- Returns:
this
-
intents
Sets the value ofCfnBot.BotLocaleProperty.getIntents()
- Parameters:
intents
- One or more intents defined for the locale.- Returns:
this
-
intents
Sets the value ofCfnBot.BotLocaleProperty.getIntents()
- Parameters:
intents
- One or more intents defined for the locale.- Returns:
this
-
slotTypes
Sets the value ofCfnBot.BotLocaleProperty.getSlotTypes()
- Parameters:
slotTypes
- One or more slot types defined for the locale.- Returns:
this
-
slotTypes
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder slotTypes(List<? extends Object> slotTypes) Sets the value ofCfnBot.BotLocaleProperty.getSlotTypes()
- Parameters:
slotTypes
- One or more slot types defined for the locale.- Returns:
this
-
voiceSettings
Sets the value ofCfnBot.BotLocaleProperty.getVoiceSettings()
- Parameters:
voiceSettings
- Defines settings for using an Amazon Polly voice to communicate with a user.- Returns:
this
-
voiceSettings
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder voiceSettings(CfnBot.VoiceSettingsProperty voiceSettings) Sets the value ofCfnBot.BotLocaleProperty.getVoiceSettings()
- Parameters:
voiceSettings
- Defines settings for using an Amazon Polly voice to communicate with a user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.BotLocaleProperty>
- Returns:
- a new instance of
CfnBot.BotLocaleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-