Interface ProductVariantSelection


public interface ProductVariantSelection

Polymorphic base type for Product Variant Selections. The actual type is determined by the type field.


Example to create an instance using the builder pattern

     ProductVariantSelection productVariantSelection = ProductVariantSelection.builder()
             .type(ProductVariantSelectionTypeEnum.INCLUSION)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull ProductVariantSelectionTypeEnum getType()

      Determines whether the SKUs are to be included in, or excluded from, the Product Selection.

      Returns:
      type
    • setType

      void setType(ProductVariantSelectionTypeEnum type)

      Determines whether the SKUs are to be included in, or excluded from, the Product Selection.

      Parameters:
      type - value to be set
    • of

      factory method
      Returns:
      instance of ProductVariantSelection
    • of

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

    • deepCopy

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

      builder factory method for ProductVariantSelection
      Returns:
      builder
    • builder

      create builder for ProductVariantSelection instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantSelection

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