@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()
Indicates whether the intent has been
Confirmed, Denied, or None if the
confirmation stage has not yet been reached. |
String |
getName()
The name of the intent.
|
Map<String,Slot> |
getSlots()
A map of all of the slots for the intent.
|
String |
getState()
Indicates the fulfillment state for the intent.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setConfirmationState(String confirmationState)
Indicates whether the intent has been
Confirmed, Denied, or None if the
confirmation stage has not yet been reached. |
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)
Indicates the fulfillment state for the intent.
|
String |
toString()
Returns a string representation of this object.
|
Intent |
withConfirmationState(ConfirmationState confirmationState)
Indicates whether the intent has been
Confirmed, Denied, or None if the
confirmation stage has not yet been reached. |
Intent |
withConfirmationState(String confirmationState)
Indicates whether the intent has been
Confirmed, Denied, or None if the
confirmation stage has not yet been reached. |
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)
Indicates the fulfillment state for the intent.
|
Intent |
withState(String state)
Indicates the fulfillment state 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)
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to fulfill the
intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming conversations).
state - Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to
fulfill the intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming
conversations).
IntentStatepublic String getState()
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to fulfill the
intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming conversations).
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to
fulfill the intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready
to fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming
conversations).
IntentStatepublic Intent withState(String state)
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to fulfill the
intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming conversations).
state - Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to
fulfill the intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming
conversations).
IntentStatepublic Intent withState(IntentState state)
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to fulfill the
intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming conversations).
state - Indicates the fulfillment state for the intent. The meanings of each value are as follows:
Failed – The bot failed to fulfill the intent.
Fulfilled – The bot has completed fulfillment of the intent.
FulfillmentInProgress – The bot is in the middle of fulfilling the intent.
InProgress – The bot is in the middle of eliciting the slot values that are necessary to
fulfill the intent.
ReadyForFulfillment – The bot has elicited all the slot values for the intent and is ready to
fulfill the intent.
Waiting – The bot is waiting for a response from the user (limited to streaming
conversations).
IntentStatepublic void setConfirmationState(String confirmationState)
Indicates whether the intent has been Confirmed, Denied, or None if the
confirmation stage has not yet been reached.
confirmationState - Indicates whether the intent has been Confirmed, Denied, or None if
the confirmation stage has not yet been reached.ConfirmationStatepublic String getConfirmationState()
Indicates whether the intent has been Confirmed, Denied, or None if the
confirmation stage has not yet been reached.
Confirmed, Denied, or None
if the confirmation stage has not yet been reached.ConfirmationStatepublic Intent withConfirmationState(String confirmationState)
Indicates whether the intent has been Confirmed, Denied, or None if the
confirmation stage has not yet been reached.
confirmationState - Indicates whether the intent has been Confirmed, Denied, or None if
the confirmation stage has not yet been reached.ConfirmationStatepublic Intent withConfirmationState(ConfirmationState confirmationState)
Indicates whether the intent has been Confirmed, Denied, or None if the
confirmation stage has not yet been reached.
confirmationState - Indicates whether the intent has been Confirmed, Denied, or None if
the confirmation stage has not yet been reached.ConfirmationStatepublic 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.