@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSessionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetSessionResult() |
Modifier and Type | Method and Description |
---|---|
GetSessionResult |
clone() |
boolean |
equals(Object obj) |
List<Interpretation> |
getInterpretations()
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
List<Message> |
getMessages()
A list of messages that were last sent to the user.
|
String |
getSessionId()
The identifier of the returned session.
|
SessionState |
getSessionState()
Represents the current state of the dialog between the user and the bot.
|
int |
hashCode() |
void |
setInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
void |
setMessages(Collection<Message> messages)
A list of messages that were last sent to the user.
|
void |
setSessionId(String sessionId)
The identifier of the returned session.
|
void |
setSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
|
String |
toString()
Returns a string representation of this object.
|
GetSessionResult |
withInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
GetSessionResult |
withInterpretations(Interpretation... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
GetSessionResult |
withMessages(Collection<Message> messages)
A list of messages that were last sent to the user.
|
GetSessionResult |
withMessages(Message... messages)
A list of messages that were last sent to the user.
|
GetSessionResult |
withSessionId(String sessionId)
The identifier of the returned session.
|
GetSessionResult |
withSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setSessionId(String sessionId)
The identifier of the returned session.
sessionId
- The identifier of the returned session.public String getSessionId()
The identifier of the returned session.
public GetSessionResult withSessionId(String sessionId)
The identifier of the returned session.
sessionId
- The identifier of the returned session.public List<Message> getMessages()
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
public void setMessages(Collection<Message> messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
messages
- A list of messages that were last sent to the user. The messages are ordered based on the order that your
returned the messages from your Lambda function or the order that messages are defined in the bot.public GetSessionResult withMessages(Message... messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- A list of messages that were last sent to the user. The messages are ordered based on the order that your
returned the messages from your Lambda function or the order that messages are defined in the bot.public GetSessionResult withMessages(Collection<Message> messages)
A list of messages that were last sent to the user. The messages are ordered based on the order that your returned the messages from your Lambda function or the order that messages are defined in the bot.
messages
- A list of messages that were last sent to the user. The messages are ordered based on the order that your
returned the messages from your Lambda function or the order that messages are defined in the bot.public List<Interpretation> getInterpretations()
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public void setInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public GetSessionResult withInterpretations(Interpretation... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
NOTE: This method appends the values to the existing list (if any). Use
setInterpretations(java.util.Collection)
or withInterpretations(java.util.Collection)
if you
want to override the existing values.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public GetSessionResult withInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates how confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public void setSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
sessionState
- Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
public SessionState getSessionState()
Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
You can use this to determine the progress of the conversation and what the next action might be.
public GetSessionResult withSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
sessionState
- Represents the current state of the dialog between the user and the bot.
You can use this to determine the progress of the conversation and what the next action might be.
public String toString()
toString
in class Object
Object.toString()
public GetSessionResult clone()