@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IntentOverride extends Object implements Serializable, Cloneable, StructuredPojo
Override settings to configure the intent state.
Constructor and Description |
---|
IntentOverride() |
Modifier and Type | Method and Description |
---|---|
IntentOverride |
addSlotsEntry(String key,
SlotValueOverride value)
Add a single Slots entry
|
IntentOverride |
clearSlotsEntries()
Removes all the entries added into Slots.
|
IntentOverride |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the intent.
|
Map<String,SlotValueOverride> |
getSlots()
A map of all of the slot value overrides for the intent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the intent.
|
void |
setSlots(Map<String,SlotValueOverride> slots)
A map of all of the slot value overrides for the intent.
|
String |
toString()
Returns a string representation of this object.
|
IntentOverride |
withName(String name)
The name of the intent.
|
IntentOverride |
withSlots(Map<String,SlotValueOverride> slots)
A map of all of the slot value overrides for the intent.
|
public void setName(String name)
The name of the intent. Only required when you're switching intents.
name
- The name of the intent. Only required when you're switching intents.public String getName()
The name of the intent. Only required when you're switching intents.
public IntentOverride withName(String name)
The name of the intent. Only required when you're switching intents.
name
- The name of the intent. Only required when you're switching intents.public Map<String,SlotValueOverride> getSlots()
A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.
public void setSlots(Map<String,SlotValueOverride> slots)
A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.
slots
- A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the
slot. Slots that are not included in the map aren't overridden.public IntentOverride withSlots(Map<String,SlotValueOverride> slots)
A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.
slots
- A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the
slot. Slots that are not included in the map aren't overridden.public IntentOverride addSlotsEntry(String key, SlotValueOverride value)
public IntentOverride clearSlotsEntries()
public String toString()
toString
in class Object
Object.toString()
public IntentOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.