Interface ListMessagesResponse.Builder

  • Method Details

    • messages

      An array of information on one or more messages.

      Parameters:
      messages - An array of information on one or more messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      ListMessagesResponse.Builder messages(Message... messages)

      An array of information on one or more messages.

      Parameters:
      messages - An array of information on one or more messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      An array of information on one or more messages.

      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<Message>).

      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:
    • nextToken

      ListMessagesResponse.Builder nextToken(String nextToken)

      If the response is truncated, Amazon Q Business returns this token, which you can use in a later request to list the next set of messages.

      Parameters:
      nextToken - If the response is truncated, Amazon Q Business returns this token, which you can use in a later request to list the next set of messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.