@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)
Marshalls this structured data using the given
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:
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 is ORIGINAL_VALUE
.
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 is ORIGINAL_VALUE
.
SlotValueResolutionStrategy
public 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:
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 is ORIGINAL_VALUE
.
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 is ORIGINAL_VALUE
.
SlotValueResolutionStrategy
public 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:
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 is ORIGINAL_VALUE
.
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 is ORIGINAL_VALUE
.
SlotValueResolutionStrategy
public 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:
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 is ORIGINAL_VALUE
.
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 is ORIGINAL_VALUE
.
SlotValueResolutionStrategy
public 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. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.
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.public AdvancedRecognitionSetting getAdvancedRecognitionSetting()
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.
public SlotValueSelectionSetting withAdvancedRecognitionSetting(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.
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.public String toString()
toString
in class Object
Object.toString()
public SlotValueSelectionSetting clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.