public static interface PutSessionRequest.Builder extends LexRuntimeV2Request.Builder, SdkPojo, CopyableBuilder<PutSessionRequest.Builder,PutSessionRequest>
| Modifier and Type | Method and Description |
|---|---|
PutSessionRequest.Builder |
botAliasId(String botAliasId)
The alias identifier of the bot that receives the session data.
|
PutSessionRequest.Builder |
botId(String botId)
The identifier of the bot that receives the session data.
|
PutSessionRequest.Builder |
localeId(String localeId)
The locale where the session is in use.
|
PutSessionRequest.Builder |
messages(Collection<Message> messages)
A list of messages to send to the user.
|
PutSessionRequest.Builder |
messages(Consumer<Message.Builder>... messages)
A list of messages to send to the user.
|
PutSessionRequest.Builder |
messages(Message... messages)
A list of messages to send to the user.
|
PutSessionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutSessionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutSessionRequest.Builder |
requestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between Amazon Lex V2 and the client application.
|
PutSessionRequest.Builder |
responseContentType(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.Builder |
sessionId(String sessionId)
The identifier of the session that receives the session data.
|
default PutSessionRequest.Builder |
sessionState(Consumer<SessionState.Builder> sessionState)
Sets the state of the session with the user.
|
PutSessionRequest.Builder |
sessionState(SessionState sessionState)
Sets the state of the session with the user.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutSessionRequest.Builder botId(String botId)
The identifier of the bot that receives the session data.
botId - The identifier of the bot that receives the session data.PutSessionRequest.Builder botAliasId(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.PutSessionRequest.Builder localeId(String localeId)
The locale where the session is in use.
localeId - The locale where the session is in use.PutSessionRequest.Builder sessionId(String sessionId)
The identifier of the session that receives the session data.
sessionId - The identifier of the session that receives the session data.PutSessionRequest.Builder messages(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.PutSessionRequest.Builder messages(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.PutSessionRequest.Builder messages(Consumer<Message.Builder>... messages)
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
This is a convenience method that creates an instance of theMessage.Builder avoiding the need to create one
manually via Message.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #messages(List.
messages - a consumer that will call methods on
Message.Builder#messages(java.util.Collection) PutSessionRequest.Builder sessionState(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.default PutSessionRequest.Builder sessionState(Consumer<SessionState.Builder> 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.
This is a convenience method that creates an instance of theSessionState.Builder avoiding the need
to create one manually via SessionState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to sessionState(SessionState).
sessionState - a consumer that will call methods on SessionState.BuildersessionState(SessionState)PutSessionRequest.Builder requestAttributes(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:.
PutSessionRequest.Builder responseContentType(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.
PutSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.