@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 |
addSessionAttributesEntry(String key,
String value)
Add a single SessionAttributes entry
|
PutSessionRequest |
clearSessionAttributesEntries()
Removes all the entries added into SessionAttributes.
|
PutSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccept()
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of
this field.
|
List<ActiveContext> |
getActiveContexts()
A list of contexts active for the request.
|
String |
getBotAlias()
The alias in use for the bot that contains the session data.
|
String |
getBotName()
The name of the bot that contains the session data.
|
DialogAction |
getDialogAction()
Sets the next action that the bot should take to fulfill the conversation.
|
List<IntentSummary> |
getRecentIntentSummaryView()
A summary of the recent intents for the bot.
|
Map<String,String> |
getSessionAttributes()
Map of key/value pairs representing the session-specific context information.
|
String |
getUserId()
The ID of the client application user.
|
int |
hashCode() |
void |
setAccept(String accept)
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of
this field.
|
void |
setActiveContexts(Collection<ActiveContext> activeContexts)
A list of contexts active for the request.
|
void |
setBotAlias(String botAlias)
The alias in use for the bot that contains the session data.
|
void |
setBotName(String botName)
The name of the bot that contains the session data.
|
void |
setDialogAction(DialogAction dialogAction)
Sets the next action that the bot should take to fulfill the conversation.
|
void |
setRecentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)
A summary of the recent intents for the bot.
|
void |
setSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing the session-specific context information.
|
void |
setUserId(String userId)
The ID of the client application user.
|
String |
toString()
Returns a string representation of this object.
|
PutSessionRequest |
withAccept(String accept)
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of
this field.
|
PutSessionRequest |
withActiveContexts(ActiveContext... activeContexts)
A list of contexts active for the request.
|
PutSessionRequest |
withActiveContexts(Collection<ActiveContext> activeContexts)
A list of contexts active for the request.
|
PutSessionRequest |
withBotAlias(String botAlias)
The alias in use for the bot that contains the session data.
|
PutSessionRequest |
withBotName(String botName)
The name of the bot that contains the session data.
|
PutSessionRequest |
withDialogAction(DialogAction dialogAction)
Sets the next action that the bot should take to fulfill the conversation.
|
PutSessionRequest |
withRecentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)
A summary of the recent intents for the bot.
|
PutSessionRequest |
withRecentIntentSummaryView(IntentSummary... recentIntentSummaryView)
A summary of the recent intents for the bot.
|
PutSessionRequest |
withSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing the session-specific context information.
|
PutSessionRequest |
withUserId(String userId)
The ID of the client application 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 setBotName(String botName)
The name of the bot that contains the session data.
botName
- The name of the bot that contains the session data.public String getBotName()
The name of the bot that contains the session data.
public PutSessionRequest withBotName(String botName)
The name of the bot that contains the session data.
botName
- The name of the bot that contains the session data.public void setBotAlias(String botAlias)
The alias in use for the bot that contains the session data.
botAlias
- The alias in use for the bot that contains the session data.public String getBotAlias()
The alias in use for the bot that contains the session data.
public PutSessionRequest withBotAlias(String botAlias)
The alias in use for the bot that contains the session data.
botAlias
- The alias in use for the bot that contains the session data.public void setUserId(String userId)
The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot.
userId
- The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your
bot.public String getUserId()
The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot.
public PutSessionRequest withUserId(String userId)
The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your bot.
userId
- The ID of the client application user. Amazon Lex uses this to identify a user's conversation with your
bot.public Map<String,String> getSessionAttributes()
Map of key/value pairs representing the 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 the session-specific context information. It contains application information passed between Amazon Lex and a client application.
sessionAttributes
- Map of key/value pairs representing the session-specific context information. It contains application
information passed between Amazon Lex and a client application.public PutSessionRequest withSessionAttributes(Map<String,String> sessionAttributes)
Map of key/value pairs representing the session-specific context information. It contains application information passed between Amazon Lex and a client application.
sessionAttributes
- Map of key/value pairs representing the session-specific context information. It contains application
information passed between Amazon Lex and a client application.public PutSessionRequest addSessionAttributesEntry(String key, String value)
public PutSessionRequest clearSessionAttributesEntries()
public void setDialogAction(DialogAction dialogAction)
Sets the next action that the bot should take to fulfill the conversation.
dialogAction
- Sets the next action that the bot should take to fulfill the conversation.public DialogAction getDialogAction()
Sets the next action that the bot should take to fulfill the conversation.
public PutSessionRequest withDialogAction(DialogAction dialogAction)
Sets the next action that the bot should take to fulfill the conversation.
dialogAction
- Sets the next action that the bot should take to fulfill the conversation.public List<IntentSummary> getRecentIntentSummaryView()
A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the contents
of the new summary view replaces the old summary view. For example, if a GetSession
request returns
three intents in the summary view and you call PutSession
with one intent in the summary view, the
next call to GetSession
will only return one intent.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the
contents of the new summary view replaces the old summary view. For example, if a GetSession
request returns three intents in the summary view and you call PutSession
with one intent in
the summary view, the next call to GetSession
will only return one intent.
public void setRecentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)
A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the contents
of the new summary view replaces the old summary view. For example, if a GetSession
request returns
three intents in the summary view and you call PutSession
with one intent in the summary view, the
next call to GetSession
will only return one intent.
recentIntentSummaryView
- A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label
on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects
to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the
contents of the new summary view replaces the old summary view. For example, if a GetSession
request returns three intents in the summary view and you call PutSession
with one intent in
the summary view, the next call to GetSession
will only return one intent.
public PutSessionRequest withRecentIntentSummaryView(IntentSummary... recentIntentSummaryView)
A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the contents
of the new summary view replaces the old summary view. For example, if a GetSession
request returns
three intents in the summary view and you call PutSession
with one intent in the summary view, the
next call to GetSession
will only return one intent.
NOTE: This method appends the values to the existing list (if any). Use
setRecentIntentSummaryView(java.util.Collection)
or
withRecentIntentSummaryView(java.util.Collection)
if you want to override the existing values.
recentIntentSummaryView
- A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label
on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects
to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the
contents of the new summary view replaces the old summary view. For example, if a GetSession
request returns three intents in the summary view and you call PutSession
with one intent in
the summary view, the next call to GetSession
will only return one intent.
public PutSessionRequest withRecentIntentSummaryView(Collection<IntentSummary> recentIntentSummaryView)
A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the contents
of the new summary view replaces the old summary view. For example, if a GetSession
request returns
three intents in the summary view and you call PutSession
with one intent in the summary view, the
next call to GetSession
will only return one intent.
recentIntentSummaryView
- A summary of the recent intents for the bot. You can use the intent summary view to set a checkpoint label
on an intent and modify attributes of intents. You can also use it to remove or add intent summary objects
to the list.
An intent that you modify or add to the list must make sense for the bot. For example, the intent name must be valid for the bot. You must provide valid values for:
intentName
slot names
slotToElict
If you send the recentIntentSummaryView
parameter in a PutSession
request, the
contents of the new summary view replaces the old summary view. For example, if a GetSession
request returns three intents in the summary view and you call PutSession
with one intent in
the summary view, the next call to GetSession
will only return one intent.
public void setAccept(String accept)
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of this field.
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses Amazon
Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit, little endian
format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
accept
- The message that Amazon Lex returns in the response can be either text or speech based depending on the
value of this field.
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses
Amazon Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit, little
endian format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
public String getAccept()
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of this field.
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses Amazon
Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit, little endian
format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses
Amazon Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit,
little endian format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
public PutSessionRequest withAccept(String accept)
The message that Amazon Lex returns in the response can be either text or speech based depending on the value of this field.
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses Amazon
Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit, little endian
format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
accept
- The message that Amazon Lex returns in the response can be either text or speech based depending on the
value of this field.
If the value is text/plain; charset=utf-8
, Amazon Lex returns text in the response.
If the value begins with audio/
, Amazon Lex returns speech in the response. Amazon Lex uses
Amazon Polly to generate the speech in the configuration that you specify. For example, if you specify
audio/mpeg
as the value, Amazon Lex returns speech in the MPEG format.
If the value is audio/pcm
, the speech is returned as audio/pcm
in 16-bit, little
endian format.
The following are the accepted values:
audio/mpeg
audio/ogg
audio/pcm
audio/*
(defaults to mpeg)
text/plain; charset=utf-8
public List<ActiveContext> getActiveContexts()
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
public void setActiveContexts(Collection<ActiveContext> activeContexts)
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
activeContexts
- A list of contexts active for the request. A context can be activated when a previous intent is fulfilled,
or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
public PutSessionRequest withActiveContexts(ActiveContext... activeContexts)
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
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
- A list of contexts active for the request. A context can be activated when a previous intent is fulfilled,
or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
public PutSessionRequest withActiveContexts(Collection<ActiveContext> activeContexts)
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
activeContexts
- A list of contexts active for the request. A context can be activated when a previous intent is fulfilled,
or by including the context in the request,
If you don't specify a list of contexts, Amazon Lex will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
public String toString()
toString
in class Object
Object.toString()
public PutSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()