@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SessionState extends Object implements Serializable, Cloneable, StructuredPojo
The state of the user's session with Amazon Lex V2.
Constructor and Description |
---|
SessionState() |
Modifier and Type | Method and Description |
---|---|
SessionState |
addSessionAttributesEntry(String key,
String value)
Add a single SessionAttributes entry
|
SessionState |
clearSessionAttributesEntries()
Removes all the entries added into SessionAttributes.
|
SessionState |
clone() |
boolean |
equals(Object obj) |
List<ActiveContext> |
getActiveContexts()
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
DialogAction |
getDialogAction()
The next step that Amazon Lex V2 should take in the conversation with a user.
|
Intent |
getIntent()
The active intent that Amazon Lex V2 is processing.
|
String |
getOriginatingRequestId()
A unique identifier for a specific request.
|
RuntimeHints |
getRuntimeHints()
Hints for phrases that a customer is likely to use for a slot.
|
Map<String,String> |
getSessionAttributes()
Map of key/value pairs representing session-specific context information.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActiveContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
void |
setDialogAction(DialogAction dialogAction)
The next step that Amazon Lex V2 should take in the conversation with a user.
|
void |
setIntent(Intent intent)
The active intent that Amazon Lex V2 is processing.
|
void |
setOriginatingRequestId(String originatingRequestId)
A unique identifier for a specific request.
|
void |
setRuntimeHints(RuntimeHints runtimeHints)
Hints for phrases that a customer is likely to use for a slot.
|
void |
setSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information.
|
String |
toString()
Returns a string representation of this object.
|
SessionState |
withActiveContexts(ActiveContext... activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
SessionState |
withActiveContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request.
|
SessionState |
withDialogAction(DialogAction dialogAction)
The next step that Amazon Lex V2 should take in the conversation with a user.
|
SessionState |
withIntent(Intent intent)
The active intent that Amazon Lex V2 is processing.
|
SessionState |
withOriginatingRequestId(String originatingRequestId)
A unique identifier for a specific request.
|
SessionState |
withRuntimeHints(RuntimeHints runtimeHints)
Hints for phrases that a customer is likely to use for a slot.
|
SessionState |
withSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information.
|
public void setDialogAction(DialogAction dialogAction)
The next step that Amazon Lex V2 should take in the conversation with a user.
dialogAction
- The next step that Amazon Lex V2 should take in the conversation with a user.public DialogAction getDialogAction()
The next step that Amazon Lex V2 should take in the conversation with a user.
public SessionState withDialogAction(DialogAction dialogAction)
The next step that Amazon Lex V2 should take in the conversation with a user.
dialogAction
- The next step that Amazon Lex V2 should take in the conversation with a user.public void setIntent(Intent intent)
The active intent that Amazon Lex V2 is processing.
intent
- The active intent that Amazon Lex V2 is processing.public Intent getIntent()
The active intent that Amazon Lex V2 is processing.
public SessionState withIntent(Intent intent)
The active intent that Amazon Lex V2 is processing.
intent
- The active intent that Amazon Lex V2 is processing.public List<ActiveContext> getActiveContexts()
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
public void setActiveContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
activeContexts
- One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active,
Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.public SessionState withActiveContexts(ActiveContext... activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
NOTE: This method appends the values to the existing list (if any). Use
setActiveContexts(java.util.Collection)
or withActiveContexts(java.util.Collection)
if you want
to override the existing values.
activeContexts
- One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active,
Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.public SessionState withActiveContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
activeContexts
- One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active,
Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.public Map<String,String> getSessionAttributes()
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
public void setSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application
information passed between Amazon Lex V2 and a client application.public SessionState withSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex V2 and a client application.
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application
information passed between Amazon Lex V2 and a client application.public SessionState addSessionAttributesEntry(String key, String value)
public SessionState clearSessionAttributesEntries()
public void setOriginatingRequestId(String originatingRequestId)
A unique identifier for a specific request.
originatingRequestId
- A unique identifier for a specific request.public String getOriginatingRequestId()
A unique identifier for a specific request.
public SessionState withOriginatingRequestId(String originatingRequestId)
A unique identifier for a specific request.
originatingRequestId
- A unique identifier for a specific request.public void setRuntimeHints(RuntimeHints runtimeHints)
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
runtimeHints
- Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help
determine the correct value of a slot.public RuntimeHints getRuntimeHints()
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
public SessionState withRuntimeHints(RuntimeHints runtimeHints)
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
runtimeHints
- Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help
determine the correct value of a slot.public String toString()
toString
in class Object
Object.toString()
public SessionState clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.