Interface ProductSearchMatchingVariants
Example to create an instance using the builder pattern
ProductSearchMatchingVariants productSearchMatchingVariants = ProductSearchMatchingVariants.builder()
.allMatched(true)
.plusMatchedVariants(matchedVariantsBuilder -> matchedVariantsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSearchMatchingVariantsbuilder(ProductSearchMatchingVariants template) create builder for ProductSearchMatchingVariants instancecopyDeep()deepCopy(ProductSearchMatchingVariants template) factory method to create a deep copy of ProductSearchMatchingVariants@NotNull Booleantrueif all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.@NotNull @Valid List<ProductSearchMatchingVariantEntry>Identifiers of the Product Variants that match the search query.of()factory methodof(ProductSearchMatchingVariants template) factory method to create a shallow copy ProductSearchMatchingVariantsvoidsetAllMatched(Boolean allMatched) trueif all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.voidsetMatchedVariants(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.voidsetMatchedVariants(List<ProductSearchMatchingVariantEntry> matchedVariants) Identifiers of the Product Variants that match the search query.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchMatchingVariants>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getAllMatched
trueif all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.falseif only a subset of the Product Variants match the search query.Is always
falsefor query expressions on Product Variant fields.- Returns:
- allMatched
-
getMatchedVariants
Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Returns:
- matchedVariants
-
setAllMatched
trueif all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.falseif only a subset of the Product Variants match the search query.Is always
falsefor query expressions on Product Variant fields.- Parameters:
allMatched- value to be set
-
setMatchedVariants
Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
matchedVariants- values to be set
-
setMatchedVariants
Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
matchedVariants- values to be set
-
of
factory method- Returns:
- instance of ProductSearchMatchingVariants
-
of
factory method to create a shallow copy ProductSearchMatchingVariants- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSearchMatchingVariants copyDeep() -
deepCopy
@Nullable static ProductSearchMatchingVariants deepCopy(@Nullable ProductSearchMatchingVariants template) factory method to create a deep copy of ProductSearchMatchingVariants- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchMatchingVariants- Returns:
- builder
-
builder
create builder for ProductSearchMatchingVariants instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchMatchingVariants
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
-