Class CfnBot.NluImprovementSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.NluImprovementSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.NluImprovementSpecificationProperty>
- Enclosing interface:
CfnBot.NluImprovementSpecificationProperty
@Stability(Stable)
public static final class CfnBot.NluImprovementSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.NluImprovementSpecificationProperty>
A builder for
CfnBot.NluImprovementSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassistedNluMode(String assistedNluMode) Sets the value ofCfnBot.NluImprovementSpecificationProperty.getAssistedNluMode()build()Builds the configured instance.Sets the value ofCfnBot.NluImprovementSpecificationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBot.NluImprovementSpecificationProperty.getEnabled()intentDisambiguationSettings(IResolvable intentDisambiguationSettings) intentDisambiguationSettings(CfnBot.IntentDisambiguationSettingsProperty intentDisambiguationSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnBot.NluImprovementSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBot.NluImprovementSpecificationProperty.getEnabled()- Parameters:
enabled- Determines whether the Assisted NLU feature is enabled for the bot. This parameter is required. 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 CfnBot.NluImprovementSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBot.NluImprovementSpecificationProperty.getEnabled()- Parameters:
enabled- Determines whether the Assisted NLU feature is enabled for the bot. This parameter is required. When set totrue, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default beingfalse.- Returns:
this
-
assistedNluMode
@Stability(Stable) public CfnBot.NluImprovementSpecificationProperty.Builder assistedNluMode(String assistedNluMode) Sets the value ofCfnBot.NluImprovementSpecificationProperty.getAssistedNluMode()- 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
-
intentDisambiguationSettings
@Stability(Stable) public CfnBot.NluImprovementSpecificationProperty.Builder intentDisambiguationSettings(IResolvable intentDisambiguationSettings) - 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 CfnBot.NluImprovementSpecificationProperty.Builder intentDisambiguationSettings(CfnBot.IntentDisambiguationSettingsProperty intentDisambiguationSettings) - 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<CfnBot.NluImprovementSpecificationProperty>- Returns:
- a new instance of
CfnBot.NluImprovementSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-