Class CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.NluImprovementSpecificationProperty>
- Enclosing interface:
CfnBotPropsMixin.NluImprovementSpecificationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.NluImprovementSpecificationProperty>
A builder for
CfnBotPropsMixin.NluImprovementSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassistedNluMode(String assistedNluMode) build()Builds the configured instance.Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getEnabled()intentDisambiguationSettings(CfnBotPropsMixin.IntentDisambiguationSettingsProperty intentDisambiguationSettings) intentDisambiguationSettings(IResolvable intentDisambiguationSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assistedNluMode
@Stability(Stable) public CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder assistedNluMode(String assistedNluMode) - Parameters:
assistedNluMode- Specifies the mode for Assisted NLU operation. UsePrimaryto make Assisted NLU the primary intent recognition method, orFallbackto use it only when standard NLU confidence is low.- Returns:
this
-
enabled
@Stability(Stable) public CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getEnabled()- Parameters:
enabled- Determines whether the Assisted NLU feature is enabled for the bot. When set totrue, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default beingfalse.- Returns:
this
-
enabled
@Stability(Stable) public CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getEnabled()- Parameters:
enabled- Determines whether the Assisted NLU feature is enabled for the bot. When set totrue, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default beingfalse.- Returns:
this
-
intentDisambiguationSettings
@Stability(Stable) public CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder intentDisambiguationSettings(IResolvable intentDisambiguationSettings) Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getIntentDisambiguationSettings()- Parameters:
intentDisambiguationSettings- An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.- Returns:
this
-
intentDisambiguationSettings
@Stability(Stable) public CfnBotPropsMixin.NluImprovementSpecificationProperty.Builder intentDisambiguationSettings(CfnBotPropsMixin.IntentDisambiguationSettingsProperty intentDisambiguationSettings) Sets the value ofCfnBotPropsMixin.NluImprovementSpecificationProperty.getIntentDisambiguationSettings()- Parameters:
intentDisambiguationSettings- An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.NluImprovementSpecificationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.NluImprovementSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-