Class ProductProjectionPagedSearchResponseBuilder
- All Implemented Interfaces:
Builder<ProductProjectionPagedSearchResponse>
Example to create an instance using the builder pattern
ProductProjectionPagedSearchResponse productProjectionPagedSearchResponse = ProductProjectionPagedSearchResponse.builder()
.limit(0.3)
.offset(0.3)
.count(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.build()Deprecated.builds ProductProjectionPagedSearchResponse with checking for non-null required valuesDeprecated.builds ProductProjectionPagedSearchResponse without checking for non-null required valuesDeprecated.Actual number of results returned.facets(FacetResults facets) Deprecated.facets(Function<FacetResultsBuilder, FacetResultsBuilder> builder) Deprecated.getCount()Deprecated.Actual number of results returned.Deprecated.getLimit()Deprecated.The maximum number of results returned on a page.Deprecated.The starting point for the retrieved paginated result.Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.getTotal()Deprecated.Total number of results matching the query.Deprecated.The maximum number of results returned on a page.of()Deprecated.factory method for an instance of ProductProjectionPagedSearchResponseBuilderof(ProductProjectionPagedSearchResponse template) Deprecated.create builder for ProductProjectionPagedSearchResponse instanceDeprecated.The starting point for the retrieved paginated result.plusResults(ProductProjection... results) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.results(ProductProjection... results) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.results(List<ProductProjection> results) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.Deprecated.Total number of results matching the query.withFacets(Function<FacetResultsBuilder, FacetResults> builder) Deprecated.Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with thetext.{language}and/orfilter.queryorfilterquery parameter.
-
Constructor Details
-
ProductProjectionPagedSearchResponseBuilder
public ProductProjectionPagedSearchResponseBuilder()Deprecated.
-
-
Method Details
-
limit
Deprecated.The maximum number of results returned on a page.
- Parameters:
limit- value to be set- Returns:
- Builder
-
offset
Deprecated.The starting point for the retrieved paginated result.
- Parameters:
offset- value to be set- Returns:
- Builder
-
count
Deprecated.Actual number of results returned.
- Parameters:
count- value to be set- Returns:
- Builder
-
total
Deprecated.Total number of results matching the query.
- Parameters:
total- value to be set- Returns:
- Builder
-
results
Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
results- value to be set- Returns:
- Builder
-
results
Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
results- value to be set- Returns:
- Builder
-
plusResults
Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
results- value to be set- Returns:
- Builder
-
plusResults
public ProductProjectionPagedSearchResponseBuilder plusResults(Function<ProductProjectionBuilder, ProductProjectionBuilder> builder) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
builder- function to build the results value- Returns:
- Builder
-
withResults
public ProductProjectionPagedSearchResponseBuilder withResults(Function<ProductProjectionBuilder, ProductProjectionBuilder> builder) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
builder- function to build the results value- Returns:
- Builder
-
addResults
public ProductProjectionPagedSearchResponseBuilder addResults(Function<ProductProjectionBuilder, ProductProjection> builder) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
builder- function to build the results value- Returns:
- Builder
-
setResults
public ProductProjectionPagedSearchResponseBuilder setResults(Function<ProductProjectionBuilder, ProductProjection> builder) Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Parameters:
builder- function to build the results value- Returns:
- Builder
-
facets
@Deprecated public ProductProjectionPagedSearchResponseBuilder facets(Function<FacetResultsBuilder, FacetResultsBuilder> builder) Deprecated.Facet results for each facet expression specified in the search request.
Only present if at least one
facetparameter was provided with the search request.- Parameters:
builder- function to build the facets value- Returns:
- Builder
-
withFacets
@Deprecated public ProductProjectionPagedSearchResponseBuilder withFacets(Function<FacetResultsBuilder, FacetResults> builder) Deprecated.Facet results for each facet expression specified in the search request.
Only present if at least one
facetparameter was provided with the search request.- Parameters:
builder- function to build the facets value- Returns:
- Builder
-
facets
@Deprecated public ProductProjectionPagedSearchResponseBuilder facets(@Nullable FacetResults facets) Deprecated.Facet results for each facet expression specified in the search request.
Only present if at least one
facetparameter was provided with the search request.- Parameters:
facets- value to be set- Returns:
- Builder
-
getLimit
Deprecated.The maximum number of results returned on a page.
- Returns:
- limit
-
getOffset
Deprecated.The starting point for the retrieved paginated result.
- Returns:
- offset
-
getCount
Deprecated.Actual number of results returned.
- Returns:
- count
-
getTotal
Deprecated.Total number of results matching the query.
- Returns:
- total
-
getResults
Deprecated.ProductProjections where at least one ProductVariant matches the search query, provided with the
text.{language}and/orfilter.queryorfilterquery parameter. If the query parametermarkMatchingVariants=truewas provided with the request, the matching variants are marked as such.- Returns:
- results
-
getFacets
Deprecated.Facet results for each facet expression specified in the search request.
Only present if at least one
facetparameter was provided with the search request.- Returns:
- facets
-
build
Deprecated.builds ProductProjectionPagedSearchResponse with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductProjectionPagedSearchResponse>- Returns:
- ProductProjectionPagedSearchResponse
-
buildUnchecked
Deprecated.builds ProductProjectionPagedSearchResponse without checking for non-null required values- Returns:
- ProductProjectionPagedSearchResponse
-
of
Deprecated.factory method for an instance of ProductProjectionPagedSearchResponseBuilder- Returns:
- builder
-
of
public static ProductProjectionPagedSearchResponseBuilder of(ProductProjectionPagedSearchResponse template) Deprecated.create builder for ProductProjectionPagedSearchResponse instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-