Interface SearchFacetsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchFacetsResponse.Builder,,SearchFacetsResponse> MarketplaceDiscoveryResponse.Builder,SdkBuilder<SearchFacetsResponse.Builder,,SearchFacetsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchFacetsResponse
@Mutable
@NotThreadSafe
public static interface SearchFacetsResponse.Builder
extends MarketplaceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<SearchFacetsResponse.Builder,SearchFacetsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlistingFacets(Map<SearchFacetType, ? extends Collection<ListingFacet>> listingFacets) A map of facet types to their corresponding facet values.listingFacetsWithStrings(Map<String, ? extends Collection<ListingFacet>> listingFacets) A map of facet types to their corresponding facet values.IfnextTokenis returned, there are more results available.totalResults(Long totalResults) The total number of listings matching the search criteria.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.marketplacediscovery.model.MarketplaceDiscoveryResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.- Parameters:
nextToken- IfnextTokenis 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.
-