Class ProductSetSelectorBuilder

java.lang.Object
com.commercetools.ml.models.similar_products.ProductSetSelectorBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductSetSelector>

public class ProductSetSelectorBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductSetSelector>
ProductSetSelectorBuilder
Example to create an instance using the builder pattern

     ProductSetSelector productSetSelector = ProductSetSelector.builder()
             .projectKey("{projectKey}")
             .build()
 
  • Constructor Details

  • 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 interface io.vrap.rmf.base.client.Builder<ProductSetSelector>
      Returns:
      ProductSetSelector
    • buildUnchecked

      builds ProductSetSelector without checking for non-null required values
      Returns:
      ProductSetSelector
    • of

      public static ProductSetSelectorBuilder 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