Class CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueSelectionSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.SlotValueSelectionSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueSelectionSettingProperty>
A builder for
CfnBotPropsMixin.SlotValueSelectionSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadvancedRecognitionSetting(CfnBotPropsMixin.AdvancedRecognitionSettingProperty advancedRecognitionSetting) advancedRecognitionSetting(IResolvable advancedRecognitionSetting) build()Builds the configured instance.regexFilter(CfnBotPropsMixin.SlotValueRegexFilterProperty regexFilter) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getRegexFilter()regexFilter(IResolvable regexFilter) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getRegexFilter()resolutionStrategy(String resolutionStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
advancedRecognitionSetting
@Stability(Stable) public CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder advancedRecognitionSetting(IResolvable advancedRecognitionSetting) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getAdvancedRecognitionSetting()- Parameters:
advancedRecognitionSetting- Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.- Returns:
this
-
advancedRecognitionSetting
@Stability(Stable) public CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder advancedRecognitionSetting(CfnBotPropsMixin.AdvancedRecognitionSettingProperty advancedRecognitionSetting) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getAdvancedRecognitionSetting()- Parameters:
advancedRecognitionSetting- Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.- Returns:
this
-
regexFilter
@Stability(Stable) public CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder regexFilter(IResolvable regexFilter) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getRegexFilter()- Parameters:
regexFilter- A regular expression used to validate the value of a slot.- Returns:
this
-
regexFilter
@Stability(Stable) public CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder regexFilter(CfnBotPropsMixin.SlotValueRegexFilterProperty regexFilter) Sets the value ofCfnBotPropsMixin.SlotValueSelectionSettingProperty.getRegexFilter()- Parameters:
regexFilter- A regular expression used to validate the value of a slot.- Returns:
this
-
resolutionStrategy
@Stability(Stable) public CfnBotPropsMixin.SlotValueSelectionSettingProperty.Builder resolutionStrategy(String resolutionStrategy) - Parameters:
resolutionStrategy- Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:ORIGINAL_VALUE- Returns the value entered by the user, if the user value is similar to the slot value.TOP_RESOLUTION- If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.
If you don't specify the
valueSelectionStrategy, the default isORIGINAL_VALUE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueSelectionSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SlotValueSelectionSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-