Interface ProductSearchFacetCountValue
public interface ProductSearchFacetCountValue
ProductSearchFacetCountValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchFacetCountValue productSearchFacetCountValue = ProductSearchFacetCountValue.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchFacetCountValuebuilder
(ProductSearchFacetCountValue template) create builder for ProductSearchFacetCountValue instancestatic ProductSearchFacetCountValue
deepCopy
(ProductSearchFacetCountValue template) factory method to create a deep copy of ProductSearchFacetCountValue@Valid SearchQuery
Additional filtering expression to apply to the search result before calculating the facet.getLevel()
Specify whether to count Products (products
) or Product Variants (variants
).@NotNull String
getName()
Name of the count facet to appear in the ProductSearchFacetResultCount.getScope()
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).static ProductSearchFacetCountValue
of()
factory methodstatic ProductSearchFacetCountValue
of
(ProductSearchFacetCountValue template) factory method to create a shallow copy ProductSearchFacetCountValuevoid
setFilter
(SearchQuery filter) Additional filtering expression to apply to the search result before calculating the facet.void
Specify whether to count Products (products
) or Product Variants (variants
).void
Name of the count facet to appear in the ProductSearchFacetResultCount.void
Whether the facet must consider only the Products resulting from the search (query
) or all the Products (all
).static com.fasterxml.jackson.core.type.TypeReference<ProductSearchFacetCountValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getName
Name of the count facet to appear in the ProductSearchFacetResultCount.
- Returns:
- name
-
getScope
ProductSearchFacetScopeEnum getScope()Whether the facet must consider only the Products resulting from the search (
query
) or all the Products (all
).- Returns:
- scope
-
getFilter
Additional filtering expression to apply to the search result before calculating the facet.
- Returns:
- filter
-
getLevel
ProductSearchFacetCountLevelEnum getLevel()Specify whether to count Products (
products
) or Product Variants (variants
).- Returns:
- level
-
setName
Name of the count facet to appear in the ProductSearchFacetResultCount.
- Parameters:
name
- value to be set
-
setScope
Whether the facet must consider only the Products resulting from the search (
query
) or all the Products (all
).- Parameters:
scope
- value to be set
-
setFilter
Additional filtering expression to apply to the search result before calculating the facet.
- Parameters:
filter
- value to be set
-
setLevel
Specify whether to count Products (
products
) or Product Variants (variants
).- Parameters:
level
- value to be set
-
of
factory method- Returns:
- instance of ProductSearchFacetCountValue
-
of
factory method to create a shallow copy ProductSearchFacetCountValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchFacetCountValue deepCopy(@Nullable ProductSearchFacetCountValue template) factory method to create a deep copy of ProductSearchFacetCountValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchFacetCountValue- Returns:
- builder
-
builder
create builder for ProductSearchFacetCountValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchFacetCountValue
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-