@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.
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 the context of a request.
|
DialogAction |
getDialogAction()
The next step that Amazon Lex should take in the conversation with a user.
|
Intent |
getIntent()
The active intent that Amazon Lex is processing.
|
String |
getOriginatingRequestId()
|
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 the context of a request.
|
void |
setDialogAction(DialogAction dialogAction)
The next step that Amazon Lex should take in the conversation with a user.
|
void |
setIntent(Intent intent)
The active intent that Amazon Lex is processing.
|
void |
setOriginatingRequestId(String originatingRequestId)
|
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 the context of a request.
|
SessionState |
withActiveContexts(Collection<ActiveContext> activeContexts)
One or more contexts that indicate to Amazon Lex the context of a request.
|
SessionState |
withDialogAction(DialogAction dialogAction)
The next step that Amazon Lex should take in the conversation with a user.
|
SessionState |
withIntent(Intent intent)
The active intent that Amazon Lex is processing.
|
SessionState |
withOriginatingRequestId(String originatingRequestId)
|
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 should take in the conversation with a user.
dialogAction
- The next step that Amazon Lex should take in the conversation with a user.public DialogAction getDialogAction()
The next step that Amazon Lex should take in the conversation with a user.
public SessionState withDialogAction(DialogAction dialogAction)
The next step that Amazon Lex should take in the conversation with a user.
dialogAction
- The next step that Amazon Lex should take in the conversation with a user.public void setIntent(Intent intent)
The active intent that Amazon Lex is processing.
intent
- The active intent that Amazon Lex is processing.public Intent getIntent()
The active intent that Amazon Lex is processing.
public SessionState withIntent(Intent intent)
The active intent that Amazon Lex is processing.
intent
- The active intent that Amazon Lex is processing.public List<ActiveContext> getActiveContexts()
One or more contexts that indicate to Amazon Lex the context of a request. When a context is active, Amazon Lex 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 the context of a request. When a context is active, Amazon Lex 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 the context of a request. When a context is active,
Amazon Lex 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 the context of a request. When a context is active, Amazon Lex 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 the context of a request. When a context is active,
Amazon Lex 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 the context of a request. When a context is active, Amazon Lex 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 the context of a request. When a context is active,
Amazon Lex 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 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 and a client application.
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application
information passed between Amazon Lex 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 and a client application.
sessionAttributes
- Map of key/value pairs representing session-specific context information. It contains application
information passed between Amazon Lex and a client application.public SessionState addSessionAttributesEntry(String key, String value)
public SessionState clearSessionAttributesEntries()
public void setOriginatingRequestId(String originatingRequestId)
originatingRequestId
- public String getOriginatingRequestId()
public SessionState withOriginatingRequestId(String originatingRequestId)
originatingRequestId
- 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.