@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutSessionRequest() |
Modifier and Type | Method and Description |
---|---|
PutSessionRequest |
addRequestAttributesEntry(String key,
String value)
Add a single RequestAttributes entry
|
PutSessionRequest |
clearRequestAttributesEntries()
Removes all the entries added into RequestAttributes.
|
PutSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBotAliasId()
The alias identifier of the bot that receives the session data.
|
String |
getBotId()
The identifier of the bot that receives the session data.
|
String |
getLocaleId()
The locale where the session is in use.
|
List<Message> |
getMessages()
A list of messages to send to the user.
|
Map<String,String> |
getRequestAttributes()
Request-specific information passed between Amazon Lex V2 and the client application.
|
String |
getResponseContentType()
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of
this parameter.
|
String |
getSessionId()
The identifier of the session that receives the session data.
|
SessionState |
getSessionState()
Sets the state of the session with the user.
|
int |
hashCode() |
void |
setBotAliasId(String botAliasId)
The alias identifier of the bot that receives the session data.
|
void |
setBotId(String botId)
The identifier of the bot that receives the session data.
|
void |
setLocaleId(String localeId)
The locale where the session is in use.
|
void |
setMessages(Collection<Message> messages)
A list of messages to send to the user.
|
void |
setRequestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between Amazon Lex V2 and the client application.
|
void |
setResponseContentType(String responseContentType)
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of
this parameter.
|
void |
setSessionId(String sessionId)
The identifier of the session that receives the session data.
|
void |
setSessionState(SessionState sessionState)
Sets the state of the session with the user.
|
String |
toString()
Returns a string representation of this object.
|
PutSessionRequest |
withBotAliasId(String botAliasId)
The alias identifier of the bot that receives the session data.
|
PutSessionRequest |
withBotId(String botId)
The identifier of the bot that receives the session data.
|
PutSessionRequest |
withLocaleId(String localeId)
The locale where the session is in use.
|
PutSessionRequest |
withMessages(Collection<Message> messages)
A list of messages to send to the user.
|
PutSessionRequest |
withMessages(Message... messages)
A list of messages to send to the user.
|
PutSessionRequest |
withRequestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between Amazon Lex V2 and the client application.
|
PutSessionRequest |
withResponseContentType(String responseContentType)
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of
this parameter.
|
PutSessionRequest |
withSessionId(String sessionId)
The identifier of the session that receives the session data.
|
PutSessionRequest |
withSessionState(SessionState sessionState)
Sets the state of the session with the user.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setBotId(String botId)
The identifier of the bot that receives the session data.
botId
- The identifier of the bot that receives the session data.public String getBotId()
The identifier of the bot that receives the session data.
public PutSessionRequest withBotId(String botId)
The identifier of the bot that receives the session data.
botId
- The identifier of the bot that receives the session data.public void setBotAliasId(String botAliasId)
The alias identifier of the bot that receives the session data.
botAliasId
- The alias identifier of the bot that receives the session data.public String getBotAliasId()
The alias identifier of the bot that receives the session data.
public PutSessionRequest withBotAliasId(String botAliasId)
The alias identifier of the bot that receives the session data.
botAliasId
- The alias identifier of the bot that receives the session data.public void setLocaleId(String localeId)
The locale where the session is in use.
localeId
- The locale where the session is in use.public String getLocaleId()
The locale where the session is in use.
public PutSessionRequest withLocaleId(String localeId)
The locale where the session is in use.
localeId
- The locale where the session is in use.public void setSessionId(String sessionId)
The identifier of the session that receives the session data.
sessionId
- The identifier of the session that receives the session data.public String getSessionId()
The identifier of the session that receives the session data.
public PutSessionRequest withSessionId(String sessionId)
The identifier of the session that receives the session data.
sessionId
- The identifier of the session that receives the session data.public List<Message> getMessages()
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
public void setMessages(Collection<Message> messages)
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
messages
- A list of messages to send to the user. Messages are sent in the order that they are defined in the list.public PutSessionRequest withMessages(Message... messages)
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
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 to send to the user. Messages are sent in the order that they are defined in the list.public PutSessionRequest withMessages(Collection<Message> messages)
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
messages
- A list of messages to send to the user. Messages are sent in the order that they are defined in the list.public void setSessionState(SessionState sessionState)
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
sessionState
- Sets the state of the session with the user. You can use this to set the current intent, attributes,
context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use
in the conversation with the user.public SessionState getSessionState()
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
public PutSessionRequest withSessionState(SessionState sessionState)
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
sessionState
- Sets the state of the session with the user. You can use this to set the current intent, attributes,
context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use
in the conversation with the user.public Map<String,String> getRequestAttributes()
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request attributes
with the prefix x-amz-lex:
.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request
attributes with the prefix x-amz-lex:
.
public void setRequestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request attributes
with the prefix x-amz-lex:
.
requestAttributes
- Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request
attributes with the prefix x-amz-lex:
.
public PutSessionRequest withRequestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request attributes
with the prefix x-amz-lex:
.
requestAttributes
- Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex:
is reserved for special attributes. Don't create any request
attributes with the prefix x-amz-lex:
.
public PutSessionRequest addRequestAttributesEntry(String key, String value)
public PutSessionRequest clearRequestAttributesEntries()
public void setResponseContentType(String responseContentType)
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
responseContentType
- The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value
of this parameter.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
public String getResponseContentType()
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
public PutSessionRequest withResponseContentType(String responseContentType)
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
responseContentType
- The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value
of this parameter.
If the value is text/plain; charset=utf-8
, Amazon Lex V2 returns text in the response.
public String toString()
toString
in class Object
Object.toString()
public PutSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()