Interface ProductVariantExclusion


public interface ProductVariantExclusion

Only Product Variants with the explicitly listed SKUs are part of a Product Selection with IndividualExclusion ProductSelectionMode.


Example to create an instance using the builder pattern

     ProductVariantExclusion productVariantExclusion = ProductVariantExclusion.builder()
             .plusSkus(skusBuilder -> skusBuilder)
             .build()
 
  • Method Details

    • getSkus

      @NotNull @NotNull List<String> getSkus()

      Non-empty array of SKUs representing Product Variants to be included in the Product Selection with IndividualExclusion ProductSelectionMode.

      Returns:
      skus
    • setSkus

      void setSkus(String... skus)

      Non-empty array of SKUs representing Product Variants to be included in the Product Selection with IndividualExclusion ProductSelectionMode.

      Parameters:
      skus - values to be set
    • setSkus

      void setSkus(List<String> skus)

      Non-empty array of SKUs representing Product Variants to be included in the Product Selection with IndividualExclusion ProductSelectionMode.

      Parameters:
      skus - values to be set
    • of

      factory method
      Returns:
      instance of ProductVariantExclusion
    • of

      factory method to create a shallow copy ProductVariantExclusion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ProductVariantExclusion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ProductVariantExclusion
      Returns:
      builder
    • builder

      create builder for ProductVariantExclusion instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantExclusion

      default <T> T withProductVariantExclusion(Function<ProductVariantExclusion,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ProductVariantExclusion> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference