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
Constructors -
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()generativeAiSettings(IResolvable generativeAiSettings) Sets the value ofCfnBot.BotLocaleProperty.getGenerativeAiSettings()generativeAiSettings(CfnBot.GenerativeAISettingsProperty generativeAiSettings) Sets the value ofCfnBot.BotLocaleProperty.getGenerativeAiSettings()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.KendraSearchIntentis 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
-
generativeAiSettings
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder generativeAiSettings(IResolvable generativeAiSettings) Sets the value ofCfnBot.BotLocaleProperty.getGenerativeAiSettings()- Parameters:
generativeAiSettings- the value to be set.- Returns:
this
-
generativeAiSettings
@Stability(Stable) public CfnBot.BotLocaleProperty.Builder generativeAiSettings(CfnBot.GenerativeAISettingsProperty generativeAiSettings) Sets the value ofCfnBot.BotLocaleProperty.getGenerativeAiSettings()- Parameters:
generativeAiSettings- the value to be set.- 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. Valid values include:standardneurallong-formgenerative
- 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. Valid values include:standardneurallong-formgenerative
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.BotLocaleProperty>- Returns:
- a new instance of
CfnBot.BotLocaleProperty - Throws:
NullPointerException- if any required attribute was not provided
-