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 instancedeepCopy
(ProductSearchMatchingVariants template) factory method to create a deep copy of ProductSearchMatchingVariants@NotNull Boolean
true
if 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 ProductSearchMatchingVariantsvoid
setAllMatched
(Boolean allMatched) true
if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.void
setMatchedVariants
(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.void
setMatchedVariants
(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> T
accessor map function
-
Method Details
-
getAllMatched
true
if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.false
if only a subset of the Product Variants match the search query.Is always
false
for 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
true
if all Variants of the returned Product match the search query, or if search query does not specify any expression for a Product Variant field.false
if only a subset of the Product Variants match the search query.Is always
false
for 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
-
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
-