@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SlotValueOverride extends Object implements Serializable, Cloneable, StructuredPojo
The slot values that Amazon Lex uses when it sets slot values in a dialog step.
| Constructor and Description |
|---|
SlotValueOverride() |
| Modifier and Type | Method and Description |
|---|---|
SlotValueOverride |
clone() |
boolean |
equals(Object obj) |
String |
getShape()
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
SlotValue |
getValue()
The current value of the slot.
|
List<SlotValueOverride> |
getValues()
A list of one or more values that the user provided for the slot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setShape(String shape)
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
void |
setValue(SlotValue value)
The current value of the slot.
|
void |
setValues(Collection<SlotValueOverride> values)
A list of one or more values that the user provided for the slot.
|
String |
toString()
Returns a string representation of this object.
|
SlotValueOverride |
withShape(SlotShape shape)
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
SlotValueOverride |
withShape(String shape)
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
SlotValueOverride |
withValue(SlotValue value)
The current value of the slot.
|
SlotValueOverride |
withValues(Collection<SlotValueOverride> values)
A list of one or more values that the user provided for the slot.
|
SlotValueOverride |
withValues(SlotValueOverride... values)
A list of one or more values that the user provided for the slot.
|
public void setShape(String shape)
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
shape - When the shape value is List, it indicates that the values field contains a list
of slot values. When the value is Scalar, it indicates that the value field
contains a single value.SlotShapepublic String getShape()
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
List, it indicates that the values field contains a
list of slot values. When the value is Scalar, it indicates that the value
field contains a single value.SlotShapepublic SlotValueOverride withShape(String shape)
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
shape - When the shape value is List, it indicates that the values field contains a list
of slot values. When the value is Scalar, it indicates that the value field
contains a single value.SlotShapepublic SlotValueOverride withShape(SlotShape shape)
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
shape - When the shape value is List, it indicates that the values field contains a list
of slot values. When the value is Scalar, it indicates that the value field
contains a single value.SlotShapepublic void setValue(SlotValue value)
The current value of the slot.
value - The current value of the slot.public SlotValue getValue()
The current value of the slot.
public SlotValueOverride withValue(SlotValue value)
The current value of the slot.
value - The current value of the slot.public List<SlotValueOverride> getValues()
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
public void setValues(Collection<SlotValueOverride> values)
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
values - A list of one or more values that the user provided for the slot. For example, for a slot that elicits
pizza toppings, the values might be "pepperoni" and "pineapple."public SlotValueOverride withValues(SlotValueOverride... values)
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection) or withValues(java.util.Collection) if you want to override the
existing values.
values - A list of one or more values that the user provided for the slot. For example, for a slot that elicits
pizza toppings, the values might be "pepperoni" and "pineapple."public SlotValueOverride withValues(Collection<SlotValueOverride> values)
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
values - A list of one or more values that the user provided for the slot. For example, for a slot that elicits
pizza toppings, the values might be "pepperoni" and "pineapple."public String toString()
toString in class ObjectObject.toString()public SlotValueOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.