Interface ProductAddVariantAction

All Superinterfaces:
ProductUpdateAction, ResourceUpdateAction<ProductUpdateAction>

public interface ProductAddVariantAction extends ProductUpdateAction
ProductAddVariantAction
Example to create an instance using the builder pattern

     ProductAddVariantAction productAddVariantAction = ProductAddVariantAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getSku

      String getSku()

      Value to set. Must be unique.

      Returns:
      sku
    • getKey

      String getKey()

      Value to set. Must be unique.

      Returns:
      key
    • getPrices

      @Valid @Valid List<PriceDraft> getPrices()

      Embedded Prices for the Product Variant.

      Returns:
      prices
    • getImages

      @Valid @Valid List<Image> getImages()

      Images for the Product Variant.

      Returns:
      images
    • getAttributes

      @Valid @Valid List<Attribute> getAttributes()

      Attributes for the Product Variant.

      Returns:
      attributes
    • getStaged

      Boolean getStaged()

      If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

      Returns:
      staged
    • getAssets

      @Valid @Valid List<AssetDraft> getAssets()

      Media assets for the Product Variant.

      Returns:
      assets
    • setSku

      void setSku(String sku)

      Value to set. Must be unique.

      Parameters:
      sku - value to be set
    • setKey

      void setKey(String key)

      Value to set. Must be unique.

      Parameters:
      key - value to be set
    • setPrices

      void setPrices(PriceDraft... prices)

      Embedded Prices for the Product Variant.

      Parameters:
      prices - values to be set
    • setPrices

      void setPrices(List<PriceDraft> prices)

      Embedded Prices for the Product Variant.

      Parameters:
      prices - values to be set
    • setImages

      void setImages(Image... images)

      Images for the Product Variant.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      Images for the Product Variant.

      Parameters:
      images - values to be set
    • setAttributes

      void setAttributes(Attribute... attributes)

      Attributes for the Product Variant.

      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<Attribute> attributes)

      Attributes for the Product Variant.

      Parameters:
      attributes - values to be set
    • setStaged

      void setStaged(Boolean staged)

      If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

      Parameters:
      staged - value to be set
    • setAssets

      void setAssets(AssetDraft... assets)

      Media assets for the Product Variant.

      Parameters:
      assets - values to be set
    • setAssets

      void setAssets(List<AssetDraft> assets)

      Media assets for the Product Variant.

      Parameters:
      assets - values to be set
    • of

      factory method
      Returns:
      instance of ProductAddVariantAction
    • of

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

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

      builder factory method for ProductAddVariantAction
      Returns:
      builder
    • builder

      create builder for ProductAddVariantAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductAddVariantAction

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