Interface SearchListingsResponse.Builder

  • Method Details

    • totalResults

      SearchListingsResponse.Builder totalResults(Long totalResults)

      The total number of listings matching the search criteria.

      Parameters:
      totalResults - The total number of listings matching the search criteria.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • listingSummaries

      SearchListingsResponse.Builder listingSummaries(Collection<ListingSummary> listingSummaries)

      The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.

      Parameters:
      listingSummaries - The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • listingSummaries

      SearchListingsResponse.Builder listingSummaries(ListingSummary... listingSummaries)

      The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.

      Parameters:
      listingSummaries - The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • listingSummaries

      SearchListingsResponse.Builder listingSummaries(Consumer<ListingSummary.Builder>... listingSummaries)

      The listing summaries matching the search criteria. Each summary includes the listing name, description, badges, categories, pricing models, reviews, and associated products.

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

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

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

      SearchListingsResponse.Builder nextToken(String nextToken)

      If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page.

      Parameters:
      nextToken - If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.