Interface ProductSetSelector
A set of ProductData for comparison. If no optional attributes are specified, all current ProductData are selected for comparison.
Example to create an instance using the builder pattern
ProductSetSelector productSetSelector = ProductSetSelector.builder()
.projectKey("{projectKey}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductSetSelectorBuilderbuilder()builder factory method for ProductSetSelectorstatic ProductSetSelectorBuilderbuilder(ProductSetSelector template) create builder for ProductSetSelector instancestatic ProductSetSelectordeepCopy(ProductSetSelector template) factory method to create a deep copy of ProductSetSelectorSpecifies 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.@NotNull StringThe project containing the project set.Specifies use of staged or current product data.static ProductSetSelectorof()factory methodstatic ProductSetSelectorof(ProductSetSelector template) factory method to create a shallow copy ProductSetSelectorvoidsetIncludeVariants(Boolean includeVariants) Specifies use of product variants.voidsetProductIds(String... productIds) An array of Product IDs to compare.voidsetProductIds(List<String> productIds) An array of Product IDs to compare.voidsetProductSetLimit(Long productSetLimit) Maximum number of products to check (if unspecified, all products are considered).voidsetProductTypeIds(String... productTypeIds) An array of product type IDs.voidsetProductTypeIds(List<String> productTypeIds) An array of product type IDs.voidsetProjectKey(String projectKey) The project containing the project set.voidSpecifies use of staged or current product data.static com.fasterxml.jackson.core.type.TypeReference<ProductSetSelector>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductSetSelector(Function<ProductSetSelector, T> helper) accessor map function
-
Method Details
-
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
Boolean getStaged()Specifies use of staged or current product data.
- Returns:
- staged
-
getIncludeVariants
Boolean getIncludeVariants()Specifies use of product variants. If set to
true, all product variants are compared, not just the master variant.- Returns:
- includeVariants
-
getProductSetLimit
Long 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
-
setProjectKey
The project containing the project set.
- Parameters:
projectKey- value to be set
-
setProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Parameters:
productIds- values to be set
-
setProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Parameters:
productIds- values to be set
-
setProductTypeIds
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- values to be set
-
setProductTypeIds
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- values to be set
-
setStaged
Specifies use of staged or current product data.
- Parameters:
staged- value to be set
-
setIncludeVariants
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
-
setProductSetLimit
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
-
of
factory method- Returns:
- instance of ProductSetSelector
-
of
factory method to create a shallow copy ProductSetSelector- Parameters:
template- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductSetSelector- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSetSelector- Returns:
- builder
-
builder
create builder for ProductSetSelector instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductSetSelector
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
-