Interface AssignedProductReference


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

      @Valid @Valid ProductVariantSelection 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

      @Valid @Valid ProductVariantExclusion 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

      void setProduct(ProductReference product)

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

      Parameters:
      product - value to be set
    • setVariantSelection

      void setVariantSelection(ProductVariantSelection variantSelection)

      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

      void setVariantExclusion(ProductVariantExclusion variantExclusion)

      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

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