Interface PutSessionRequest.Builder

    • 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 the Message.Builder avoiding the need to create one manually via Message.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #messages(List).

        Parameters:
        messages - a consumer that will call methods on Message.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.
      • 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 prefix x-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 prefix x-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.