Class ProductSetSelectorBuilder
- All Implemented Interfaces:
Builder<ProductSetSelector>
Example to create an instance using the builder pattern
ProductSetSelector productSetSelector = ProductSetSelector.builder()
.projectKey("{projectKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetSelector with checking for non-null required valuesbuilds ProductSetSelector without checking for non-null required valuesSpecifies use of product variants.An array of Product IDs to compare.Maximum number of products to check (if unspecified, all products are considered).An array of product type IDs.The project containing the project set.Specifies use of staged or current product data.includeVariants
(Boolean includeVariants) Specifies use of product variants.static ProductSetSelectorBuilder
of()
factory method for an instance of ProductSetSelectorBuilderstatic ProductSetSelectorBuilder
of
(ProductSetSelector template) create builder for ProductSetSelector instanceplusProductIds
(String... productIds) An array of Product IDs to compare.plusProductTypeIds
(String... productTypeIds) An array of product type IDs.productIds
(String... productIds) An array of Product IDs to compare.productIds
(List<String> productIds) An array of Product IDs to compare.productSetLimit
(Long productSetLimit) Maximum number of products to check (if unspecified, all products are considered).productTypeIds
(String... productTypeIds) An array of product type IDs.productTypeIds
(List<String> productTypeIds) An array of product type IDs.projectKey
(String projectKey) The project containing the project set.Specifies use of staged or current product data.
-
Constructor Details
-
ProductSetSelectorBuilder
public ProductSetSelectorBuilder()
-
-
Method Details
-
projectKey
The project containing the project set.
- Parameters:
projectKey
- value to be set- Returns:
- Builder
-
productIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Parameters:
productIds
- value to be set- Returns:
- Builder
-
productIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Parameters:
productIds
- value to be set- Returns:
- Builder
-
plusProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Parameters:
productIds
- value to be set- Returns:
- Builder
-
productTypeIds
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Parameters:
productTypeIds
- value to be set- Returns:
- Builder
-
productTypeIds
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Parameters:
productTypeIds
- value to be set- Returns:
- Builder
-
plusProductTypeIds
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Parameters:
productTypeIds
- value to be set- Returns:
- Builder
-
staged
Specifies use of staged or current product data.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
includeVariants
Specifies use of product variants. If set to
true
, all product variants are compared, not just the master variant.- Parameters:
includeVariants
- value to be set- Returns:
- Builder
-
productSetLimit
Maximum number of products to check (if unspecified, all products are considered). Note that the maximum number of product comparisons between two productSets is 20,000,000. This limit cannot be exceeded. If you need a higher limit, contact https://support.commercetools.com
- Parameters:
productSetLimit
- value to be set- Returns:
- Builder
-
getProjectKey
The project containing the project set.
- Returns:
- projectKey
-
getProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Returns:
- productIds
-
getProductTypeIds
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Returns:
- productTypeIds
-
getStaged
Specifies use of staged or current product data.
- Returns:
- staged
-
getIncludeVariants
Specifies use of product variants. If set to
true
, all product variants are compared, not just the master variant.- Returns:
- includeVariants
-
getProductSetLimit
Maximum number of products to check (if unspecified, all products are considered). Note that the maximum number of product comparisons between two productSets is 20,000,000. This limit cannot be exceeded. If you need a higher limit, contact https://support.commercetools.com
- Returns:
- productSetLimit
-
build
builds ProductSetSelector with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetSelector>
- Returns:
- ProductSetSelector
-
buildUnchecked
builds ProductSetSelector without checking for non-null required values- Returns:
- ProductSetSelector
-
of
factory method for an instance of ProductSetSelectorBuilder- Returns:
- builder
-
of
create builder for ProductSetSelector instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-