Interface AssignedProductReference

All Known Implementing Classes:
AssignedProductReferenceImpl

public interface AssignedProductReference
AssignedProductReference
Example to create an instance using the builder pattern

     AssignedProductReference assignedProductReference = AssignedProductReference.builder()
             .product(productBuilder -> productBuilder)
             .build()
 
  • Method Details

    • getProduct

      @NotNull @Valid @NotNull @Valid ProductReference getProduct()

      Reference to a Product that is assigned to the Product Selection.

      Returns:
      product
    • getVariantSelection

      The Variants of the Product that are included from the Product Selection.

      This field may exist only in Product Selections with Individual ProductSelectionMode. In absence of this field, all Variants are deemed to be included.

      Returns:
      variantSelection
    • getVariantExclusion

      The Variants of the Product that are excluded from the Product Selection.

      This field may exist only in Product Selections with IndividualExclusion ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.

      Returns:
      variantExclusion
    • setProduct

      Reference to a Product that is assigned to the Product Selection.

      Parameters:
      product - value to be set
    • setVariantSelection

      The Variants of the Product that are included from the Product Selection.

      This field may exist only in Product Selections with Individual ProductSelectionMode. In absence of this field, all Variants are deemed to be included.

      Parameters:
      variantSelection - value to be set
    • setVariantExclusion

      The Variants of the Product that are excluded from the Product Selection.

      This field may exist only in Product Selections with IndividualExclusion ProductSelectionMode. In absence of this field, all Variants are deemed to be excluded.

      Parameters:
      variantExclusion - value to be set
    • of

      factory method
      Returns:
      instance of AssignedProductReference
    • of

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

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

      builder factory method for AssignedProductReference
      Returns:
      builder
    • builder

      create builder for AssignedProductReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssignedProductReference

      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<AssignedProductReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference