Class CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.IntentDisambiguationSettingsProperty>
- Enclosing interface:
CfnBotPropsMixin.IntentDisambiguationSettingsProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.IntentDisambiguationSettingsProperty>
A builder for
CfnBotPropsMixin.IntentDisambiguationSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customDisambiguationMessage(String customDisambiguationMessage) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getEnabled()maxDisambiguationIntents(Number maxDisambiguationIntents)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customDisambiguationMessage
@Stability(Stable) public CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder customDisambiguationMessage(String customDisambiguationMessage) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getCustomDisambiguationMessage()- 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
-
enabled
@Stability(Stable) public CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getEnabled()- Parameters:
enabled- Determines whether the Intent Disambiguation feature is enabled. 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 CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getEnabled()- Parameters:
enabled- Determines whether the Intent Disambiguation feature is enabled. When set totrue, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default beingfalse.- Returns:
this
-
maxDisambiguationIntents
@Stability(Stable) public CfnBotPropsMixin.IntentDisambiguationSettingsProperty.Builder maxDisambiguationIntents(Number maxDisambiguationIntents) Sets the value ofCfnBotPropsMixin.IntentDisambiguationSettingsProperty.getMaxDisambiguationIntents()- 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<CfnBotPropsMixin.IntentDisambiguationSettingsProperty>- Returns:
- a new instance of
CfnBotPropsMixin.IntentDisambiguationSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-