Interface ProductVariantDraftImport


public interface ProductVariantDraftImport

The representation of a Product Variant Draft for the import purpose.


Example to create an instance using the builder pattern

     ProductVariantDraftImport productVariantDraftImport = ProductVariantDraftImport.builder()
             .key("{key}")
             .build()
 
  • Method Details

    • getSku

      String getSku()
      Returns:
      sku
    • getKey

      @NotNull @NotNull String getKey()
      Returns:
      key
    • getPrices

      @Valid @Valid List<PriceDraftImport> getPrices()
      Returns:
      prices
    • getAttributes

      @Valid @Valid List<Attribute> getAttributes()
      Returns:
      attributes
    • getImages

      @Valid @Valid List<Image> getImages()
      Returns:
      images
    • getAssets

      @Valid @Valid List<Asset> getAssets()
      Returns:
      assets
    • setSku

      void setSku(String sku)
      set sku
      Parameters:
      sku - value to be set
    • setKey

      void setKey(String key)
      set key
      Parameters:
      key - value to be set
    • setPrices

      void setPrices(PriceDraftImport... prices)
      set prices
      Parameters:
      prices - values to be set
    • setPrices

      void setPrices(List<PriceDraftImport> prices)
      set prices
      Parameters:
      prices - values to be set
    • setAttributes

      void setAttributes(Attribute... attributes)
      set attributes
      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<Attribute> attributes)
      set attributes
      Parameters:
      attributes - values to be set
    • setImages

      void setImages(Image... images)
      set images
      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)
      set images
      Parameters:
      images - values to be set
    • setAssets

      void setAssets(Asset... assets)
      set assets
      Parameters:
      assets - values to be set
    • setAssets

      void setAssets(List<Asset> assets)
      set assets
      Parameters:
      assets - values to be set
    • of

      factory method
      Returns:
      instance of ProductVariantDraftImport
    • of

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

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

      builder factory method for ProductVariantDraftImport
      Returns:
      builder
    • builder

      create builder for ProductVariantDraftImport instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantDraftImport

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