Class ProductSetSelectorImpl
- All Implemented Interfaces:
ProductSetSelector
,io.vrap.rmf.base.client.ModelBase
A set of ProductData for comparison. If no optional attributes are specified, all current
ProductData are selected for comparison.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies 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.int
hashCode()
void
setIncludeVariants
(Boolean includeVariants) Specifies use of product variants.void
setProductIds
(String... productIds) An array of Product IDs to compare.void
setProductIds
(List<String> productIds) An array of Product IDs to compare.void
setProductSetLimit
(Long productSetLimit) Maximum number of products to check (if unspecified, all products are considered).void
setProductTypeIds
(String... productTypeIds) An array of product type IDs.void
setProductTypeIds
(List<String> productTypeIds) An array of product type IDs.void
setProjectKey
(String projectKey) The project containing the project set.void
Specifies use of staged or current product data.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.ml.models.similar_products.ProductSetSelector
withProductSetSelector
-
Constructor Details
-
ProductSetSelectorImpl
public ProductSetSelectorImpl()create empty instance
-
-
Method Details
-
getProjectKey
The project containing the project set.
- Specified by:
getProjectKey
in interfaceProductSetSelector
- Returns:
- projectKey
-
getProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
getProductIds
in interfaceProductSetSelector
- 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.
- Specified by:
getProductTypeIds
in interfaceProductSetSelector
- Returns:
- productTypeIds
-
getStaged
Specifies use of staged or current product data.
- Specified by:
getStaged
in interfaceProductSetSelector
- Returns:
- staged
-
getIncludeVariants
Specifies use of product variants. If set to
true
, all product variants are compared, not just the master variant.- Specified by:
getIncludeVariants
in interfaceProductSetSelector
- 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
- Specified by:
getProductSetLimit
in interfaceProductSetSelector
- Returns:
- productSetLimit
-
setProjectKey
Description copied from interface:ProductSetSelector
The project containing the project set.
- Specified by:
setProjectKey
in interfaceProductSetSelector
- Parameters:
projectKey
- value to be set
-
setProductIds
Description copied from interface:ProductSetSelector
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
setProductIds
in interfaceProductSetSelector
- Parameters:
productIds
- values to be set
-
setProductIds
Description copied from interface:ProductSetSelector
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
setProductIds
in interfaceProductSetSelector
- Parameters:
productIds
- values to be set
-
setProductTypeIds
Description copied from interface:ProductSetSelector
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Specified by:
setProductTypeIds
in interfaceProductSetSelector
- Parameters:
productTypeIds
- values to be set
-
setProductTypeIds
Description copied from interface:ProductSetSelector
An array of product type IDs. Only products with product types in this array are compared. If unspecified, no product type filter is applied.
- Specified by:
setProductTypeIds
in interfaceProductSetSelector
- Parameters:
productTypeIds
- values to be set
-
setStaged
Description copied from interface:ProductSetSelector
Specifies use of staged or current product data.
- Specified by:
setStaged
in interfaceProductSetSelector
- Parameters:
staged
- value to be set
-
setIncludeVariants
Description copied from interface:ProductSetSelector
Specifies use of product variants. If set to
true
, all product variants are compared, not just the master variant.- Specified by:
setIncludeVariants
in interfaceProductSetSelector
- Parameters:
includeVariants
- value to be set
-
setProductSetLimit
Description copied from interface:ProductSetSelector
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
- Specified by:
setProductSetLimit
in interfaceProductSetSelector
- Parameters:
productSetLimit
- value to be set
-
equals
-
hashCode
public int hashCode()
-