Class ProductSearchMatchingVariantsBuilder
- All Implemented Interfaces:
Builder<ProductSearchMatchingVariants>
Example to create an instance using the builder pattern
ProductSearchMatchingVariants productSearchMatchingVariants = ProductSearchMatchingVariants.builder()
.allMatched(true)
.plusMatchedVariants(matchedVariantsBuilder -> matchedVariantsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchedVariants
(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntry> builder) Identifiers of the Product Variants that match the search query.allMatched
(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.build()
builds ProductSearchMatchingVariants with checking for non-null required valuesbuilds ProductSearchMatchingVariants without checking for non-null required valuestrue
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.Identifiers of the Product Variants that match the search query.matchedVariants
(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.matchedVariants
(List<ProductSearchMatchingVariantEntry> matchedVariants) Identifiers of the Product Variants that match the search query.of()
factory method for an instance of ProductSearchMatchingVariantsBuilderof
(ProductSearchMatchingVariants template) create builder for ProductSearchMatchingVariants instanceplusMatchedVariants
(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.plusMatchedVariants
(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntryBuilder> builder) Identifiers of the Product Variants that match the search query.setMatchedVariants
(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntry> builder) Identifiers of the Product Variants that match the search query.withMatchedVariants
(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntryBuilder> builder) Identifiers of the Product Variants that match the search query.
-
Constructor Details
-
ProductSearchMatchingVariantsBuilder
public ProductSearchMatchingVariantsBuilder()
-
-
Method Details
-
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.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- Returns:
- Builder
-
matchedVariants
public ProductSearchMatchingVariantsBuilder matchedVariants(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
matchedVariants
- value to be set- Returns:
- Builder
-
matchedVariants
public ProductSearchMatchingVariantsBuilder matchedVariants(List<ProductSearchMatchingVariantEntry> matchedVariants) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
matchedVariants
- value to be set- Returns:
- Builder
-
plusMatchedVariants
public ProductSearchMatchingVariantsBuilder plusMatchedVariants(ProductSearchMatchingVariantEntry... matchedVariants) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
matchedVariants
- value to be set- Returns:
- Builder
-
plusMatchedVariants
public ProductSearchMatchingVariantsBuilder plusMatchedVariants(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntryBuilder> builder) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
builder
- function to build the matchedVariants value- Returns:
- Builder
-
withMatchedVariants
public ProductSearchMatchingVariantsBuilder withMatchedVariants(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntryBuilder> builder) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
builder
- function to build the matchedVariants value- Returns:
- Builder
-
addMatchedVariants
public ProductSearchMatchingVariantsBuilder addMatchedVariants(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntry> builder) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
builder
- function to build the matchedVariants value- Returns:
- Builder
-
setMatchedVariants
public ProductSearchMatchingVariantsBuilder setMatchedVariants(Function<ProductSearchMatchingVariantEntryBuilder, ProductSearchMatchingVariantEntry> builder) Identifiers of the Product Variants that match the search query.
Empty if all Product Variants of the returned Product match.
- Parameters:
builder
- function to build the matchedVariants value- Returns:
- Builder
-
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
-
build
builds ProductSearchMatchingVariants with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSearchMatchingVariants>
- Returns:
- ProductSearchMatchingVariants
-
buildUnchecked
builds ProductSearchMatchingVariants without checking for non-null required values- Returns:
- ProductSearchMatchingVariants
-
of
factory method for an instance of ProductSearchMatchingVariantsBuilder- Returns:
- builder
-
of
create builder for ProductSearchMatchingVariants instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-