Interface ProductTailoringAddVariantAction

All Superinterfaces:
ProductTailoringUpdateAction

public interface ProductTailoringAddVariantAction extends ProductTailoringUpdateAction

Either id or sku is required to reference a ProductVariant that exists. Produces the ProductVariantTailoringAdded Message.


Example to create an instance using the builder pattern

     ProductTailoringAddVariantAction productTailoringAddVariantAction = ProductTailoringAddVariantAction.builder()
             .build()
 
  • Field Details

    • ADD_VARIANT

      static final String ADD_VARIANT
      discriminator value for ProductTailoringAddVariantAction
      See Also:
  • Method Details

    • getId

      Long getId()

      The id of the tailored ProductVariant to update.

      Returns:
      id
    • getSku

      String getSku()

      The sku of the tailored ProductVariant to update.

      Returns:
      sku
    • getImages

      @Valid @Valid List<Image> getImages()

      Images for the Product Variant Tailoring.

      Returns:
      images
    • getAssets

      @Valid @Valid List<AssetDraft> getAssets()

      Media assets for the Product Variant Tailoring.

      Returns:
      assets
    • getAttributes

      @Valid @Valid List<ProductTailoringAttribute> getAttributes()

      Attributes for the Product Variant Tailoring.

      Returns:
      attributes
    • getStaged

      Boolean getStaged()

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

      Returns:
      staged
    • setId

      void setId(Long id)

      The id of the tailored ProductVariant to update.

      Parameters:
      id - value to be set
    • setSku

      void setSku(String sku)

      The sku of the tailored ProductVariant to update.

      Parameters:
      sku - value to be set
    • setImages

      void setImages(Image... images)

      Images for the Product Variant Tailoring.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      Images for the Product Variant Tailoring.

      Parameters:
      images - values to be set
    • setAssets

      void setAssets(AssetDraft... assets)

      Media assets for the Product Variant Tailoring.

      Parameters:
      assets - values to be set
    • setAssets

      void setAssets(List<AssetDraft> assets)

      Media assets for the Product Variant Tailoring.

      Parameters:
      assets - values to be set
    • setAttributes

      void setAttributes(ProductTailoringAttribute... attributes)

      Attributes for the Product Variant Tailoring.

      Parameters:
      attributes - values to be set
    • setAttributes

      void setAttributes(List<ProductTailoringAttribute> attributes)

      Attributes for the Product Variant Tailoring.

      Parameters:
      attributes - values to be set
    • setStaged

      void setStaged(Boolean staged)

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

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of ProductTailoringAddVariantAction
    • of

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

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

      builder factory method for ProductTailoringAddVariantAction
      Returns:
      builder
    • builder

      create builder for ProductTailoringAddVariantAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTailoringAddVariantAction

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