Class CfnBot.IntentDisambiguationSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.IntentDisambiguationSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.IntentDisambiguationSettingsProperty>
- Enclosing interface:
CfnBot.IntentDisambiguationSettingsProperty
@Stability(Stable)
public static final class CfnBot.IntentDisambiguationSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.IntentDisambiguationSettingsProperty>
A builder for
CfnBot.IntentDisambiguationSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customDisambiguationMessage(String customDisambiguationMessage) Sets the value ofCfnBot.IntentDisambiguationSettingsProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBot.IntentDisambiguationSettingsProperty.getEnabled()maxDisambiguationIntents(Number maxDisambiguationIntents)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnBot.IntentDisambiguationSettingsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBot.IntentDisambiguationSettingsProperty.getEnabled()- Parameters:
enabled- Determines whether the Intent Disambiguation feature is enabled. This parameter is required. When set totrue, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default beingfalse.- Returns:
this
-
enabled
@Stability(Stable) public CfnBot.IntentDisambiguationSettingsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBot.IntentDisambiguationSettingsProperty.getEnabled()- Parameters:
enabled- Determines whether the Intent Disambiguation feature is enabled. This parameter is required. When set totrue, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default beingfalse.- Returns:
this
-
customDisambiguationMessage
@Stability(Stable) public CfnBot.IntentDisambiguationSettingsProperty.Builder customDisambiguationMessage(String customDisambiguationMessage) - Parameters:
customDisambiguationMessage- Provides a custom message that will be displayed before presenting the disambiguation options to users. This message helps set the context for users and can be customized to match your bot's tone and brand. If not specified, a default message will be used.- Returns:
this
-
maxDisambiguationIntents
@Stability(Stable) public CfnBot.IntentDisambiguationSettingsProperty.Builder maxDisambiguationIntents(Number maxDisambiguationIntents) - Parameters:
maxDisambiguationIntents- Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed. This setting determines how many intent options will be shown to users when the system detects ambiguous input. The default value is 3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.IntentDisambiguationSettingsProperty>- Returns:
- a new instance of
CfnBot.IntentDisambiguationSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-