Interface SearchFacetsResponse.Builder

  • Method Details

    • totalResults

      SearchFacetsResponse.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.
    • listingFacetsWithStrings

      SearchFacetsResponse.Builder listingFacetsWithStrings(Map<String,? extends Collection<ListingFacet>> listingFacets)

      A map of facet types to their corresponding facet values. Each facet value includes a display name, internal value, and count of matching listings.

      Parameters:
      listingFacets - A map of facet types to their corresponding facet values. Each facet value includes a display name, internal value, and count of matching listings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • listingFacets

      SearchFacetsResponse.Builder listingFacets(Map<SearchFacetType,? extends Collection<ListingFacet>> listingFacets)

      A map of facet types to their corresponding facet values. Each facet value includes a display name, internal value, and count of matching listings.

      Parameters:
      listingFacets - A map of facet types to their corresponding facet values. Each facet value includes a display name, internal value, and count of matching listings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      SearchFacetsResponse.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.