@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutSessionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
PutSessionResult() |
Modifier and Type | Method and Description |
---|---|
PutSessionResult |
clone() |
boolean |
equals(Object obj) |
InputStream |
getAudioStream()
If the requested content type was audio, the audio version of the message to convey to the user.
|
String |
getContentType()
The type of response.
|
String |
getMessages()
A list of messages that were last sent to the user.
|
String |
getRequestAttributes()
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2.
|
String |
getSessionId()
The identifier of the session that received the data.
|
String |
getSessionState()
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot.
|
int |
hashCode() |
void |
setAudioStream(InputStream audioStream)
If the requested content type was audio, the audio version of the message to convey to the user.
|
void |
setContentType(String contentType)
The type of response.
|
void |
setMessages(String messages)
A list of messages that were last sent to the user.
|
void |
setRequestAttributes(String requestAttributes)
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2.
|
void |
setSessionId(String sessionId)
The identifier of the session that received the data.
|
void |
setSessionState(String sessionState)
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot.
|
String |
toString()
Returns a string representation of this object.
|
PutSessionResult |
withAudioStream(InputStream audioStream)
If the requested content type was audio, the audio version of the message to convey to the user.
|
PutSessionResult |
withContentType(String contentType)
The type of response.
|
PutSessionResult |
withMessages(String messages)
A list of messages that were last sent to the user.
|
PutSessionResult |
withRequestAttributes(String requestAttributes)
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2.
|
PutSessionResult |
withSessionId(String sessionId)
The identifier of the session that received the data.
|
PutSessionResult |
withSessionState(String sessionState)
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setContentType(String contentType)
The type of response. Same as the type specified in the responseContentType
field in the request.
contentType
- The type of response. Same as the type specified in the responseContentType
field in the
request.public String getContentType()
The type of response. Same as the type specified in the responseContentType
field in the request.
responseContentType
field in the
request.public PutSessionResult withContentType(String contentType)
The type of response. Same as the type specified in the responseContentType
field in the request.
contentType
- The type of response. Same as the type specified in the responseContentType
field in the
request.public void setMessages(String messages)
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
messages
- A list of messages that were last sent to the user. The messages are ordered based on how you return the
messages from you Lambda function or the order that the messages are defined in the bot.public String getMessages()
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
public PutSessionResult withMessages(String messages)
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
messages
- A list of messages that were last sent to the user. The messages are ordered based on how you return the
messages from you Lambda function or the order that the messages are defined in the bot.public void setSessionState(String sessionState)
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sessionState
- A base-64-encoded gzipped field that represents the current state of the dialog between the user and the
bot. Use this to determine the progress of the conversation and what the next action may be.public String getSessionState()
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
public PutSessionResult withSessionState(String sessionState)
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sessionState
- A base-64-encoded gzipped field that represents the current state of the dialog between the user and the
bot. Use this to determine the progress of the conversation and what the next action may be.public void setRequestAttributes(String requestAttributes)
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2. These are the same as the requestAttribute
parameter in the call to the
PutSession
operation.
requestAttributes
- A base-64-encoded gzipped field that provides request-specific information passed between the client
application and Amazon Lex V2. These are the same as the requestAttribute
parameter in the
call to the PutSession
operation.public String getRequestAttributes()
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2. These are the same as the requestAttribute
parameter in the call to the
PutSession
operation.
requestAttribute
parameter in the
call to the PutSession
operation.public PutSessionResult withRequestAttributes(String requestAttributes)
A base-64-encoded gzipped field that provides request-specific information passed between the client application
and Amazon Lex V2. These are the same as the requestAttribute
parameter in the call to the
PutSession
operation.
requestAttributes
- A base-64-encoded gzipped field that provides request-specific information passed between the client
application and Amazon Lex V2. These are the same as the requestAttribute
parameter in the
call to the PutSession
operation.public void setSessionId(String sessionId)
The identifier of the session that received the data.
sessionId
- The identifier of the session that received the data.public String getSessionId()
The identifier of the session that received the data.
public PutSessionResult withSessionId(String sessionId)
The identifier of the session that received the data.
sessionId
- The identifier of the session that received the data.public void setAudioStream(InputStream audioStream)
If the requested content type was audio, the audio version of the message to convey to the user.
audioStream
- If the requested content type was audio, the audio version of the message to convey to the user.public InputStream getAudioStream()
If the requested content type was audio, the audio version of the message to convey to the user.
public PutSessionResult withAudioStream(InputStream audioStream)
If the requested content type was audio, the audio version of the message to convey to the user.
audioStream
- If the requested content type was audio, the audio version of the message to convey to the user.public String toString()
toString
in class Object
Object.toString()
public PutSessionResult clone()