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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies 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.inthashCode()voidsetIncludeVariants(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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods 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:
getProjectKeyin interfaceProductSetSelector- Returns:
- projectKey
-
getProductIds
An array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
getProductIdsin 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:
getProductTypeIdsin interfaceProductSetSelector- Returns:
- productTypeIds
-
getStaged
Specifies use of staged or current product data.
- Specified by:
getStagedin 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:
getIncludeVariantsin 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:
getProductSetLimitin interfaceProductSetSelector- Returns:
- productSetLimit
-
setProjectKey
Description copied from interface:ProductSetSelectorThe project containing the project set.
- Specified by:
setProjectKeyin interfaceProductSetSelector- Parameters:
projectKey- value to be set
-
setProductIds
Description copied from interface:ProductSetSelectorAn array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
setProductIdsin interfaceProductSetSelector- Parameters:
productIds- values to be set
-
setProductIds
Description copied from interface:ProductSetSelectorAn array of Product IDs to compare. If unspecified, no Product ID filter is applied.
- Specified by:
setProductIdsin interfaceProductSetSelector- Parameters:
productIds- values to be set
-
setProductTypeIds
Description copied from interface:ProductSetSelectorAn 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:
setProductTypeIdsin interfaceProductSetSelector- Parameters:
productTypeIds- values to be set
-
setProductTypeIds
Description copied from interface:ProductSetSelectorAn 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:
setProductTypeIdsin interfaceProductSetSelector- Parameters:
productTypeIds- values to be set
-
setStaged
Description copied from interface:ProductSetSelectorSpecifies use of staged or current product data.
- Specified by:
setStagedin interfaceProductSetSelector- Parameters:
staged- value to be set
-
setIncludeVariants
Description copied from interface:ProductSetSelectorSpecifies use of product variants. If set to
true, all product variants are compared, not just the master variant.- Specified by:
setIncludeVariantsin interfaceProductSetSelector- Parameters:
includeVariants- value to be set
-
setProductSetLimit
Description copied from interface:ProductSetSelectorMaximum 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:
setProductSetLimitin interfaceProductSetSelector- Parameters:
productSetLimit- value to be set
-
equals
-
hashCode
public int hashCode()
-