@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Slot extends Object implements Serializable, Cloneable, StructuredPojo
A value that Amazon Lex V2 uses to fulfill an intent.
| Constructor and Description |
|---|
Slot() |
| Modifier and Type | Method and Description |
|---|---|
Slot |
addSubSlotsEntry(String key,
Slot value)
Add a single SubSlots entry
|
Slot |
clearSubSlotsEntries()
Removes all the entries added into SubSlots.
|
Slot |
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. |
Map<String,Slot> |
getSubSlots()
The constituent sub slots of a composite slot.
|
Value |
getValue()
The current value of the slot.
|
List<Slot> |
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 |
setSubSlots(Map<String,Slot> subSlots)
The constituent sub slots of a composite slot.
|
void |
setValue(Value value)
The current value of the slot.
|
void |
setValues(Collection<Slot> values)
A list of one or more values that the user provided for the slot.
|
String |
toString()
Returns a string representation of this object.
|
Slot |
withShape(Shape shape)
When the
shape value is List, it indicates that the values field contains
a list of slot values. |
Slot |
withShape(String shape)
When the
shape value is List, it indicates that the values field contains
a list of slot values. |
Slot |
withSubSlots(Map<String,Slot> subSlots)
The constituent sub slots of a composite slot.
|
Slot |
withValue(Value value)
The current value of the slot.
|
Slot |
withValues(Collection<Slot> values)
A list of one or more values that the user provided for the slot.
|
Slot |
withValues(Slot... values)
A list of one or more values that the user provided for the slot.
|
public void setValue(Value value)
The current value of the slot.
value - The current value of the slot.public Value getValue()
The current value of the slot.
public Slot withValue(Value value)
The current value of the slot.
value - The current value of 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.Shapepublic 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.
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.Shapepublic Slot 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.Shapepublic Slot withShape(Shape 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.Shapepublic List<Slot> getValues()
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
public void setValues(Collection<Slot> values)
A list of one or more values that the user provided for the slot. For example, if a 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, if a for a slot that
elicits pizza toppings, the values might be "pepperoni" and "pineapple."public Slot withValues(Slot... values)
A list of one or more values that the user provided for the slot. For example, if a 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, if a for a slot that
elicits pizza toppings, the values might be "pepperoni" and "pineapple."public Slot withValues(Collection<Slot> values)
A list of one or more values that the user provided for the slot. For example, if a 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, if a for a slot that
elicits pizza toppings, the values might be "pepperoni" and "pineapple."public Map<String,Slot> getSubSlots()
The constituent sub slots of a composite slot.
public void setSubSlots(Map<String,Slot> subSlots)
The constituent sub slots of a composite slot.
subSlots - The constituent sub slots of a composite slot.public Slot withSubSlots(Map<String,Slot> subSlots)
The constituent sub slots of a composite slot.
subSlots - The constituent sub slots of a composite slot.public Slot clearSubSlotsEntries()
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.