@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Value extends Object implements Serializable, Cloneable, StructuredPojo
Information about the value provided for a slot and Amazon Lex V2's interpretation.
Constructor and Description |
---|
Value() |
Modifier and Type | Method and Description |
---|---|
Value |
clone() |
boolean |
equals(Object obj) |
String |
getInterpretedValue()
The value that Amazon Lex V2 determines for the slot, given the user input.
|
String |
getOriginalValue()
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot
value.
|
List<String> |
getResolvedValues()
A list of values that Amazon Lex V2 determines are possible resolutions for the user input.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInterpretedValue(String interpretedValue)
The value that Amazon Lex V2 determines for the slot, given the user input.
|
void |
setOriginalValue(String originalValue)
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot
value.
|
void |
setResolvedValues(Collection<String> resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input.
|
String |
toString()
Returns a string representation of this object.
|
Value |
withInterpretedValue(String interpretedValue)
The value that Amazon Lex V2 determines for the slot, given the user input.
|
Value |
withOriginalValue(String originalValue)
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot
value.
|
Value |
withResolvedValues(Collection<String> resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input.
|
Value |
withResolvedValues(String... resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input.
|
public void setOriginalValue(String originalValue)
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
originalValue
- The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the
slot value.public String getOriginalValue()
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
public Value withOriginalValue(String originalValue)
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
originalValue
- The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the
slot value.public void setInterpretedValue(String interpretedValue)
The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the
setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you
can have Amazon Lex V2 choose the first value in the resolvedValues
list.
interpretedValue
- The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on
the setting of the value selection strategy for the bot. You can choose to use the value entered by the
user, or you can have Amazon Lex V2 choose the first value in the resolvedValues
list.public String getInterpretedValue()
The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the
setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you
can have Amazon Lex V2 choose the first value in the resolvedValues
list.
resolvedValues
list.public Value withInterpretedValue(String interpretedValue)
The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on the
setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you
can have Amazon Lex V2 choose the first value in the resolvedValues
list.
interpretedValue
- The value that Amazon Lex V2 determines for the slot, given the user input. The actual value depends on
the setting of the value selection strategy for the bot. You can choose to use the value entered by the
user, or you can have Amazon Lex V2 choose the first value in the resolvedValues
list.public List<String> getResolvedValues()
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value
matches the interpretedValue
.
interpretedValue
.public void setResolvedValues(Collection<String> resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value
matches the interpretedValue
.
resolvedValues
- A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first
value matches the interpretedValue
.public Value withResolvedValues(String... resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value
matches the interpretedValue
.
NOTE: This method appends the values to the existing list (if any). Use
setResolvedValues(java.util.Collection)
or withResolvedValues(java.util.Collection)
if you want
to override the existing values.
resolvedValues
- A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first
value matches the interpretedValue
.public Value withResolvedValues(Collection<String> resolvedValues)
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value
matches the interpretedValue
.
resolvedValues
- A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first
value matches the interpretedValue
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.