Interface GetChatMessagesResponse.Builder

  • Method Details

    • messages

      The list of chat messages in chronological order.

      Parameters:
      messages - The list of chat messages in chronological order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      The list of chat messages in chronological order.

      Parameters:
      messages - The list of chat messages in chronological order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • messages

      The list of chat messages in chronological order.

      This is a convenience method that creates an instance of the ChatMessage.Builder avoiding the need to create one manually via ChatMessage.builder().

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

      Parameters:
      messages - a consumer that will call methods on ChatMessage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextToken

      The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

      Parameters:
      nextToken - The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
      Returns:
      Returns a reference to this object so that method calls can be chained together.