Interface PutSessionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutSessionRequest.Builder,PutSessionRequest>,LexRuntimeV2Request.Builder,SdkBuilder<PutSessionRequest.Builder,PutSessionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutSessionRequest
public static interface PutSessionRequest.Builder extends LexRuntimeV2Request.Builder, SdkPojo, CopyableBuilder<PutSessionRequest.Builder,PutSessionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PutSessionRequest.BuilderbotAliasId(String botAliasId)The alias identifier of the bot that receives the session data.PutSessionRequest.BuilderbotId(String botId)The identifier of the bot that receives the session data.PutSessionRequest.BuilderlocaleId(String localeId)The locale where the session is in use.PutSessionRequest.Buildermessages(Collection<Message> messages)A list of messages to send to the user.PutSessionRequest.Buildermessages(Consumer<Message.Builder>... messages)A list of messages to send to the user.PutSessionRequest.Buildermessages(Message... messages)A list of messages to send to the user.PutSessionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutSessionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutSessionRequest.BuilderrequestAttributes(Map<String,String> requestAttributes)Request-specific information passed between Amazon Lex V2 and the client application.PutSessionRequest.BuilderresponseContentType(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.BuildersessionId(String sessionId)The identifier of the session that receives the session data.default PutSessionRequest.BuildersessionState(Consumer<SessionState.Builder> sessionState)Sets the state of the session with the user.PutSessionRequest.BuildersessionState(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 Detail
-
botId
PutSessionRequest.Builder botId(String 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
PutSessionRequest.Builder botAliasId(String 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
PutSessionRequest.Builder localeId(String 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
PutSessionRequest.Builder sessionId(String 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
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.
- 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
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.
- 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
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.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messages(List.) - 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:
#messages(java.util.Collection)
-
sessionState
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.
- 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
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.Builderavoiding the need to create one manually viaSessionState.builder().When the
Consumercompletes,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:
sessionState(SessionState)
-
requestAttributes
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 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
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.
- 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-