Class ProductVariantImportDraftImpl

java.lang.Object
com.commercetools.api.models.order.ProductVariantImportDraftImpl
All Implemented Interfaces:
ProductVariantImportDraft, io.vrap.rmf.base.client.Draft<ProductVariantImportDraft>, io.vrap.rmf.base.client.ModelBase

public class ProductVariantImportDraftImpl extends Object implements ProductVariantImportDraft, io.vrap.rmf.base.client.ModelBase
ProductVariantImportDraft
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    The sequential ID of the variant within the product.
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    The Embedded Prices of the variant.
    The SKU of the existing variant.
    int
     
    void
    setAttributes(Attribute... attributes)
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    void
    If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.
    void
    setId(Long id)
    The sequential ID of the variant within the product.
    void
    setImages(Image... images)
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    void
    setImages(List<Image> images)
    If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.
    void
    setPrices(PriceDraft... prices)
    The Embedded Prices of the variant.
    void
    The Embedded Prices of the variant.
    void
    The SKU of the existing variant.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.api.models.order.ProductVariantImportDraft

    withProductVariantImportDraft
  • Constructor Details

  • Method Details

    • getId

      public Long getId()

      The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.

      Specified by:
      getId in interface ProductVariantImportDraft
      Returns:
      id
    • getSku

      public String getSku()

      The SKU of the existing variant.

      Specified by:
      getSku in interface ProductVariantImportDraft
      Returns:
      sku
    • getPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Specified by:
      getPrices in interface ProductVariantImportDraft
      Returns:
      prices
    • getAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Specified by:
      getAttributes in interface ProductVariantImportDraft
      Returns:
      attributes
    • getImages

      public List<Image> getImages()

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Specified by:
      getImages in interface ProductVariantImportDraft
      Returns:
      images
    • setId

      public void setId(Long id)
      Description copied from interface: ProductVariantImportDraft

      The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.

      Specified by:
      setId in interface ProductVariantImportDraft
      Parameters:
      id - value to be set
    • setSku

      public void setSku(String sku)
      Description copied from interface: ProductVariantImportDraft

      The SKU of the existing variant.

      Specified by:
      setSku in interface ProductVariantImportDraft
      Parameters:
      sku - value to be set
    • setPrices

      public void setPrices(PriceDraft... prices)
      Description copied from interface: ProductVariantImportDraft

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Specified by:
      setPrices in interface ProductVariantImportDraft
      Parameters:
      prices - values to be set
    • setPrices

      public void setPrices(List<PriceDraft> prices)
      Description copied from interface: ProductVariantImportDraft

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Specified by:
      setPrices in interface ProductVariantImportDraft
      Parameters:
      prices - values to be set
    • setAttributes

      public void setAttributes(Attribute... attributes)
      Description copied from interface: ProductVariantImportDraft

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Specified by:
      setAttributes in interface ProductVariantImportDraft
      Parameters:
      attributes - values to be set
    • setAttributes

      public void setAttributes(List<Attribute> attributes)
      Description copied from interface: ProductVariantImportDraft

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Specified by:
      setAttributes in interface ProductVariantImportDraft
      Parameters:
      attributes - values to be set
    • setImages

      public void setImages(Image... images)
      Description copied from interface: ProductVariantImportDraft

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Specified by:
      setImages in interface ProductVariantImportDraft
      Parameters:
      images - values to be set
    • setImages

      public void setImages(List<Image> images)
      Description copied from interface: ProductVariantImportDraft

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Specified by:
      setImages in interface ProductVariantImportDraft
      Parameters:
      images - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object