Interface Statement.Builder

    • Method Detail

      • messages

        Statement.Builder messages​(Collection<Message> messages)

        A collection of message objects.

        Parameters:
        messages - A collection of message objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messages

        Statement.Builder messages​(Message... messages)

        A collection of message objects.

        Parameters:
        messages - A collection of message objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • messages

        Statement.Builder messages​(Consumer<Message.Builder>... messages)

        A collection of message objects.

        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)
      • responseCard

        Statement.Builder responseCard​(String responseCard)

        At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.

        Parameters:
        responseCard - At runtime, if the client is using the PostText API, Amazon Lex includes the response card in the response. It substitutes all of the session attributes and slot values for placeholders in the response card.
        Returns:
        Returns a reference to this object so that method calls can be chained together.