Class ProductSetSelectorImpl

java.lang.Object
com.commercetools.ml.models.similar_products.ProductSetSelectorImpl
All Implemented Interfaces:
ProductSetSelector, io.vrap.rmf.base.client.ModelBase

public class ProductSetSelectorImpl extends Object implements 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.

  • Constructor Details

    • ProductSetSelectorImpl

      public ProductSetSelectorImpl()
      create empty instance
  • Method Details

    • getProjectKey

      public String getProjectKey()

      The project containing the project set.

      Specified by:
      getProjectKey in interface ProductSetSelector
      Returns:
      projectKey
    • getProductIds

      public List<String> getProductIds()

      An array of Product IDs to compare. If unspecified, no Product ID filter is applied.

      Specified by:
      getProductIds in interface ProductSetSelector
      Returns:
      productIds
    • getProductTypeIds

      public List<String> 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 interface ProductSetSelector
      Returns:
      productTypeIds
    • getStaged

      public Boolean getStaged()

      Specifies use of staged or current product data.

      Specified by:
      getStaged in interface ProductSetSelector
      Returns:
      staged
    • getIncludeVariants

      public Boolean getIncludeVariants()

      Specifies use of product variants. If set to true, all product variants are compared, not just the master variant.

      Specified by:
      getIncludeVariants in interface ProductSetSelector
      Returns:
      includeVariants
    • getProductSetLimit

      public 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

      Specified by:
      getProductSetLimit in interface ProductSetSelector
      Returns:
      productSetLimit
    • setProjectKey

      public void setProjectKey(String projectKey)
      Description copied from interface: ProductSetSelector

      The project containing the project set.

      Specified by:
      setProjectKey in interface ProductSetSelector
      Parameters:
      projectKey - value to be set
    • setProductIds

      public void setProductIds(String... productIds)
      Description copied from interface: ProductSetSelector

      An array of Product IDs to compare. If unspecified, no Product ID filter is applied.

      Specified by:
      setProductIds in interface ProductSetSelector
      Parameters:
      productIds - values to be set
    • setProductIds

      public void setProductIds(List<String> productIds)
      Description copied from interface: ProductSetSelector

      An array of Product IDs to compare. If unspecified, no Product ID filter is applied.

      Specified by:
      setProductIds in interface ProductSetSelector
      Parameters:
      productIds - values to be set
    • setProductTypeIds

      public void setProductTypeIds(String... productTypeIds)
      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 interface ProductSetSelector
      Parameters:
      productTypeIds - values to be set
    • setProductTypeIds

      public void setProductTypeIds(List<String> productTypeIds)
      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 interface ProductSetSelector
      Parameters:
      productTypeIds - values to be set
    • setStaged

      public void setStaged(Boolean staged)
      Description copied from interface: ProductSetSelector

      Specifies use of staged or current product data.

      Specified by:
      setStaged in interface ProductSetSelector
      Parameters:
      staged - value to be set
    • setIncludeVariants

      public void setIncludeVariants(Boolean includeVariants)
      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 interface ProductSetSelector
      Parameters:
      includeVariants - value to be set
    • setProductSetLimit

      public void setProductSetLimit(Long productSetLimit)
      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 interface ProductSetSelector
      Parameters:
      productSetLimit - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object