Interface PutSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutSessionResponse.Builder,,PutSessionResponse> LexRuntimeV2Response.Builder,SdkBuilder<PutSessionResponse.Builder,,PutSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutSessionResponse
-
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) The type of response.A list of messages that were last sent to the user.requestAttributes(String requestAttributes) A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2.The identifier of the session that received the data.sessionState(String sessionState) A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
contentType
The type of response. Same as the type specified in the
responseContentTypefield in the request.- Parameters:
contentType- The type of response. Same as the type specified in theresponseContentTypefield in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
- Parameters:
messages- A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
- Parameters:
sessionState- A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestAttributes
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the
requestAttributeparameter in the call to thePutSessionoperation.- Parameters:
requestAttributes- A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as therequestAttributeparameter in the call to thePutSessionoperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session that received the data.
- Parameters:
sessionId- The identifier of the session that received the data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-