Interface PutSessionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>,LexRuntimeV2Response.Builder,SdkBuilder<PutSessionResponse.Builder,PutSessionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- PutSessionResponse
public static interface PutSessionResponse.Builder extends LexRuntimeV2Response.Builder, SdkPojo, CopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutSessionResponse.BuildercontentType(String contentType)The type of response.PutSessionResponse.Buildermessages(String messages)A list of messages that were last sent to the user.PutSessionResponse.BuilderrequestAttributes(String requestAttributes)A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2.PutSessionResponse.BuildersessionId(String sessionId)The identifier of the session that received the data.PutSessionResponse.BuildersessionState(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
contentType
PutSessionResponse.Builder contentType(String 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
PutSessionResponse.Builder messages(String 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
PutSessionResponse.Builder sessionState(String 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
PutSessionResponse.Builder requestAttributes(String 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
PutSessionResponse.Builder sessionId(String 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.
-
-