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 Details

    • contentType

      PutSessionResponse.Builder contentType(String contentType)

      The type of response. Same as the type specified in the responseContentType field in the request.

      Parameters:
      contentType - The type of response. Same as the type specified in the responseContentType field 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 requestAttribute parameter in the call to the PutSession operation.

      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 the requestAttribute parameter in the call to the PutSession operation.
      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.