Interface PutSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutSessionRequest.Builder,
,PutSessionRequest> LexRuntimeV2Request.Builder
,SdkBuilder<PutSessionRequest.Builder,
,PutSessionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptionbotAliasId
(String botAliasId) The alias identifier of the bot that receives the session data.The identifier of the bot that receives the session data.The locale where the session is in use.messages
(Collection<Message> messages) A list of messages to send to the user.messages
(Consumer<Message.Builder>... messages) A list of messages to send to the user.A list of messages to send to the user.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requestAttributes
(Map<String, String> requestAttributes) Request-specific information passed between Amazon Lex V2 and the client application.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.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.sessionState
(SessionState sessionState) Sets the state of the session with the user.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
botId
The identifier of the bot that receives the session data.
- Parameters:
botId
- The identifier of the bot that receives the session data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botAliasId
The alias identifier of the bot that receives the session data.
- Parameters:
botAliasId
- The alias identifier of the bot that receives the session data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
The locale where the session is in use.
- Parameters:
localeId
- The locale where the session is in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session that receives the session data.
- Parameters:
sessionId
- The identifier of the session that receives the session data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
- Parameters:
messages
- A list of messages to send to the user. Messages are sent in the order that they are defined in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
- Parameters:
messages
- A list of messages to send to the user. Messages are sent in the order that they are defined in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessages(List<Message>)
.- Parameters:
messages
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaSessionState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionState(SessionState)
.- Parameters:
sessionState
- a consumer that will call methods onSessionState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 prefixx-amz-lex:
.- Parameters:
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 prefixx-amz-lex:
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
PutSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-