Class AssignedProductReferenceImpl

java.lang.Object
com.commercetools.api.models.product_selection.AssignedProductReferenceImpl
All Implemented Interfaces:
AssignedProductReference, io.vrap.rmf.base.client.ModelBase

public class AssignedProductReferenceImpl extends Object implements AssignedProductReference, io.vrap.rmf.base.client.ModelBase
AssignedProductReference
  • Constructor Details

    • AssignedProductReferenceImpl

      public AssignedProductReferenceImpl()
      create empty instance
  • Method Details

    • getProduct

      public ProductReference getProduct()

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

      Specified by:
      getProduct in interface AssignedProductReference
      Returns:
      product
    • getVariantSelection

      public 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.

      Specified by:
      getVariantSelection in interface AssignedProductReference
      Returns:
      variantSelection
    • getVariantExclusion

      public 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.

      Specified by:
      getVariantExclusion in interface AssignedProductReference
      Returns:
      variantExclusion
    • setProduct

      public void setProduct(ProductReference product)
      Description copied from interface: AssignedProductReference

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

      Specified by:
      setProduct in interface AssignedProductReference
      Parameters:
      product - value to be set
    • setVariantSelection

      public void setVariantSelection(ProductVariantSelection variantSelection)
      Description copied from interface: AssignedProductReference

      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.

      Specified by:
      setVariantSelection in interface AssignedProductReference
      Parameters:
      variantSelection - value to be set
    • setVariantExclusion

      public void setVariantExclusion(ProductVariantExclusion variantExclusion)
      Description copied from interface: AssignedProductReference

      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.

      Specified by:
      setVariantExclusion in interface AssignedProductReference
      Parameters:
      variantExclusion - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object