Interface SlotValueSelectionSetting.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlotValueSelectionSetting.Builder,SlotValueSelectionSetting>,SdkBuilder<SlotValueSelectionSetting.Builder,SlotValueSelectionSetting>,SdkPojo
- Enclosing class:
- SlotValueSelectionSetting
public static interface SlotValueSelectionSetting.Builder extends SdkPojo, CopyableBuilder<SlotValueSelectionSetting.Builder,SlotValueSelectionSetting>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SlotValueSelectionSetting.BuilderadvancedRecognitionSetting(Consumer<AdvancedRecognitionSetting.Builder> advancedRecognitionSetting)Provides settings that enable advanced recognition settings for slot values.SlotValueSelectionSetting.BuilderadvancedRecognitionSetting(AdvancedRecognitionSetting advancedRecognitionSetting)Provides settings that enable advanced recognition settings for slot values.default SlotValueSelectionSetting.BuilderregexFilter(Consumer<SlotValueRegexFilter.Builder> regexFilter)A regular expression used to validate the value of a slot.SlotValueSelectionSetting.BuilderregexFilter(SlotValueRegexFilter regexFilter)A regular expression used to validate the value of a slot.SlotValueSelectionSetting.BuilderresolutionStrategy(String resolutionStrategy)Determines the slot resolution strategy that Amazon Lex uses to return slot type values.SlotValueSelectionSetting.BuilderresolutionStrategy(SlotValueResolutionStrategy resolutionStrategy)Determines the slot resolution strategy that Amazon Lex uses to return slot type values.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resolutionStrategy
SlotValueSelectionSetting.Builder resolutionStrategy(String 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotValueResolutionStrategy,SlotValueResolutionStrategy
-
-
resolutionStrategy
SlotValueSelectionSetting.Builder resolutionStrategy(SlotValueResolutionStrategy 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.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotValueResolutionStrategy,SlotValueResolutionStrategy
-
-
regexFilter
SlotValueSelectionSetting.Builder regexFilter(SlotValueRegexFilter regexFilter)
A regular expression used to validate the value of a slot.
- Parameters:
regexFilter- A regular expression used to validate the value of a slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regexFilter
default SlotValueSelectionSetting.Builder regexFilter(Consumer<SlotValueRegexFilter.Builder> regexFilter)
A regular expression used to validate the value of a slot.
This is a convenience method that creates an instance of theSlotValueRegexFilter.Builderavoiding the need to create one manually viaSlotValueRegexFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregexFilter(SlotValueRegexFilter).- Parameters:
regexFilter- a consumer that will call methods onSlotValueRegexFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
regexFilter(SlotValueRegexFilter)
-
advancedRecognitionSetting
SlotValueSelectionSetting.Builder advancedRecognitionSetting(AdvancedRecognitionSetting 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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
advancedRecognitionSetting
default SlotValueSelectionSetting.Builder advancedRecognitionSetting(Consumer<AdvancedRecognitionSetting.Builder> 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.
This is a convenience method that creates an instance of theAdvancedRecognitionSetting.Builderavoiding the need to create one manually viaAdvancedRecognitionSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadvancedRecognitionSetting(AdvancedRecognitionSetting).- Parameters:
advancedRecognitionSetting- a consumer that will call methods onAdvancedRecognitionSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
advancedRecognitionSetting(AdvancedRecognitionSetting)
-
-