@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SlotValueSelectionSetting extends Object implements Serializable, Cloneable, StructuredPojo
Contains settings used by Amazon Lex to select a slot value.
| Constructor and Description |
|---|
SlotValueSelectionSetting() |
| Modifier and Type | Method and Description |
|---|---|
SlotValueSelectionSetting |
clone() |
boolean |
equals(Object obj) |
AdvancedRecognitionSetting |
getAdvancedRecognitionSetting()
Provides settings that enable advanced recognition settings for slot values.
|
SlotValueRegexFilter |
getRegexFilter()
A regular expression used to validate the value of a slot.
|
String |
getResolutionStrategy()
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAdvancedRecognitionSetting(AdvancedRecognitionSetting advancedRecognitionSetting)
Provides settings that enable advanced recognition settings for slot values.
|
void |
setRegexFilter(SlotValueRegexFilter regexFilter)
A regular expression used to validate the value of a slot.
|
void |
setResolutionStrategy(String resolutionStrategy)
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
|
String |
toString()
Returns a string representation of this object.
|
SlotValueSelectionSetting |
withAdvancedRecognitionSetting(AdvancedRecognitionSetting advancedRecognitionSetting)
Provides settings that enable advanced recognition settings for slot values.
|
SlotValueSelectionSetting |
withRegexFilter(SlotValueRegexFilter regexFilter)
A regular expression used to validate the value of a slot.
|
SlotValueSelectionSetting |
withResolutionStrategy(SlotValueResolutionStrategy resolutionStrategy)
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
|
SlotValueSelectionSetting |
withResolutionStrategy(String resolutionStrategy)
Determines the slot resolution strategy that Amazon Lex uses to return slot type values.
|
public void setResolutionStrategy(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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
SlotValueResolutionStrategypublic String getResolutionStrategy()
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
SlotValueResolutionStrategypublic SlotValueSelectionSetting withResolutionStrategy(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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
SlotValueResolutionStrategypublic SlotValueSelectionSetting withResolutionStrategy(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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
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:
OriginalValue - Returns the value entered by the user, if the user value is similar to the slot value.
TopResolution - 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 is OriginalValue.
SlotValueResolutionStrategypublic void setRegexFilter(SlotValueRegexFilter regexFilter)
A regular expression used to validate the value of a slot.
regexFilter - A regular expression used to validate the value of a slot.public SlotValueRegexFilter getRegexFilter()
A regular expression used to validate the value of a slot.
public SlotValueSelectionSetting withRegexFilter(SlotValueRegexFilter regexFilter)
A regular expression used to validate the value of a slot.
regexFilter - A regular expression used to validate the value of a slot.public void setAdvancedRecognitionSetting(AdvancedRecognitionSetting advancedRecognitionSetting)
Provides settings that enable advanced recognition settings for slot values.
advancedRecognitionSetting - Provides settings that enable advanced recognition settings for slot values.public AdvancedRecognitionSetting getAdvancedRecognitionSetting()
Provides settings that enable advanced recognition settings for slot values.
public SlotValueSelectionSetting withAdvancedRecognitionSetting(AdvancedRecognitionSetting advancedRecognitionSetting)
Provides settings that enable advanced recognition settings for slot values.
advancedRecognitionSetting - Provides settings that enable advanced recognition settings for slot values.public String toString()
toString in class ObjectObject.toString()public SlotValueSelectionSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.