Interface LineItemProductVariantImportDraft

All Superinterfaces:
Draft<LineItemProductVariantImportDraft>

public interface LineItemProductVariantImportDraft extends Draft<LineItemProductVariantImportDraft>
LineItemProductVariantImportDraft
Example to create an instance using the builder pattern

     LineItemProductVariantImportDraft lineItemProductVariantImportDraft = LineItemProductVariantImportDraft.builder()
             .build()
 
  • Method Details

    • getProductVariant

      @Valid @Valid ProductVariantKeyReference getProductVariant()

      Maps to ProductVariant.product.

      Returns:
      productVariant
    • getSku

      String getSku()

      Maps to ProductVariantImportDraft.sku.

      Returns:
      sku
    • getPrices

      @Valid @Valid List<LineItemPrice> getPrices()

      Maps to ProductVariantImportDraft.prices

      Returns:
      prices
    • getAttributes

      @Valid @Valid List<Attribute> getAttributes()

      Maps to ProductVariantImportDraft.attributes

      Returns:
      attributes
    • getImages

      @Valid @Valid List<Image> getImages()

      Maps to ProductVariantImportDraft.images.

      Returns:
      images
    • setProductVariant

      void setProductVariant(ProductVariantKeyReference productVariant)

      Maps to ProductVariant.product.

      Parameters:
      productVariant - value to be set
    • setSku

      void setSku(String sku)

      Maps to ProductVariantImportDraft.sku.

      Parameters:
      sku - value to be set
    • setPrices

      void setPrices(LineItemPrice... prices)

      Maps to ProductVariantImportDraft.prices

      Parameters:
      prices - values to be set
    • setPrices

      void setPrices(List<LineItemPrice> prices)

      Maps to ProductVariantImportDraft.prices

      Parameters:
      prices - values to be set
    • setAttributes

      void setAttributes(Attribute... attributes)

      Maps to ProductVariantImportDraft.attributes

      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<Attribute> attributes)

      Maps to ProductVariantImportDraft.attributes

      Parameters:
      attributes - values to be set
    • setImages

      void setImages(Image... images)

      Maps to ProductVariantImportDraft.images.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      Maps to ProductVariantImportDraft.images.

      Parameters:
      images - values to be set
    • of

      factory method
      Returns:
      instance of LineItemProductVariantImportDraft
    • of

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

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

      builder factory method for LineItemProductVariantImportDraft
      Returns:
      builder
    • builder

      create builder for LineItemProductVariantImportDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLineItemProductVariantImportDraft

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