@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Intent extends Object implements Serializable, Cloneable, StructuredPojo
The current intent that Amazon Lex V2 is attempting to fulfill.
Constructor and Description |
---|
Intent() |
Modifier and Type | Method and Description |
---|---|
Intent |
addSlotsEntry(String key,
Slot value)
Add a single Slots entry
|
Intent |
clearSlotsEntries()
Removes all the entries added into Slots.
|
Intent |
clone() |
boolean |
equals(Object obj) |
String |
getConfirmationState()
Contains information about whether fulfillment of the intent has been confirmed.
|
String |
getName()
The name of the intent.
|
Map<String,Slot> |
getSlots()
A map of all of the slots for the intent.
|
String |
getState()
Contains fulfillment information for the intent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfirmationState(String confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
|
void |
setName(String name)
The name of the intent.
|
void |
setSlots(Map<String,Slot> slots)
A map of all of the slots for the intent.
|
void |
setState(String state)
Contains fulfillment information for the intent.
|
String |
toString()
Returns a string representation of this object.
|
Intent |
withConfirmationState(ConfirmationState confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
|
Intent |
withConfirmationState(String confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
|
Intent |
withName(String name)
The name of the intent.
|
Intent |
withSlots(Map<String,Slot> slots)
A map of all of the slots for the intent.
|
Intent |
withState(IntentState state)
Contains fulfillment information for the intent.
|
Intent |
withState(String state)
Contains fulfillment information for the intent.
|
public void setName(String name)
The name of the intent.
name
- The name of the intent.public String getName()
The name of the intent.
public Intent withName(String name)
The name of the intent.
name
- The name of the intent.public Map<String,Slot> getSlots()
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
public void setSlots(Map<String,Slot> slots)
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
slots
- A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot
has not been filled, the value is null.public Intent withSlots(Map<String,Slot> slots)
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
slots
- A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot
has not been filled, the value is null.public Intent clearSlotsEntries()
public void setState(String state)
Contains fulfillment information for the intent.
state
- Contains fulfillment information for the intent.IntentState
public String getState()
Contains fulfillment information for the intent.
IntentState
public Intent withState(String state)
Contains fulfillment information for the intent.
state
- Contains fulfillment information for the intent.IntentState
public Intent withState(IntentState state)
Contains fulfillment information for the intent.
state
- Contains fulfillment information for the intent.IntentState
public void setConfirmationState(String confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
confirmationState
- Contains information about whether fulfillment of the intent has been confirmed.ConfirmationState
public String getConfirmationState()
Contains information about whether fulfillment of the intent has been confirmed.
ConfirmationState
public Intent withConfirmationState(String confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
confirmationState
- Contains information about whether fulfillment of the intent has been confirmed.ConfirmationState
public Intent withConfirmationState(ConfirmationState confirmationState)
Contains information about whether fulfillment of the intent has been confirmed.
confirmationState
- Contains information about whether fulfillment of the intent has been confirmed.ConfirmationState
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.