Interface VariantExclusion


public interface VariantExclusion

Defines which Variants of the Product will be excluded from the Product Selection. If not supplied all Variants are deemed to be excluded.


Example to create an instance using the builder pattern

     VariantExclusion variantExclusion = VariantExclusion.builder()
             .build()
 
  • Method Details

    • getSkus

      List<String> getSkus()

      List of SKUs to be excluded.

      Returns:
      skus
    • setSkus

      void setSkus(String... skus)

      List of SKUs to be excluded.

      Parameters:
      skus - values to be set
    • setSkus

      void setSkus(List<String> skus)

      List of SKUs to be excluded.

      Parameters:
      skus - values to be set
    • of

      static VariantExclusion of()
      factory method
      Returns:
      instance of VariantExclusion
    • of

      static VariantExclusion of(VariantExclusion template)
      factory method to create a shallow copy VariantExclusion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      VariantExclusion copyDeep()
    • deepCopy

      @Nullable static VariantExclusion deepCopy(@Nullable VariantExclusion template)
      factory method to create a deep copy of VariantExclusion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static VariantExclusionBuilder builder()
      builder factory method for VariantExclusion
      Returns:
      builder
    • builder

      static VariantExclusionBuilder builder(VariantExclusion template)
      create builder for VariantExclusion instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantExclusion

      default <T> T withVariantExclusion(Function<VariantExclusion,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<VariantExclusion> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference