Interface ProductTailoringRemoveImageAction

All Superinterfaces:
ProductTailoringUpdateAction

public interface ProductTailoringRemoveImageAction extends ProductTailoringUpdateAction

Either variantId or sku is required to reference a ProductVariant that exists.


Example to create an instance using the builder pattern

     ProductTailoringRemoveImageAction productTailoringRemoveImageAction = ProductTailoringRemoveImageAction.builder()
             .imageUrl("{imageUrl}")
             .build()
 
  • Field Details

    • REMOVE_IMAGE

      static final String REMOVE_IMAGE
      discriminator value for ProductTailoringRemoveImageAction
      See Also:
  • Method Details

    • getVariantId

      Long getVariantId()

      The id of the tailored ProductVariant to update.

      Returns:
      variantId
    • getSku

      String getSku()

      The sku of the tailored ProductVariant to update.

      Returns:
      sku
    • getImageUrl

      @NotNull @NotNull String getImageUrl()

      The URL of the image to remove.

      Returns:
      imageUrl
    • getStaged

      Boolean getStaged()

      If true, only the staged image is removed. If false, both the current and staged image is removed.

      Returns:
      staged
    • setVariantId

      void setVariantId(Long variantId)

      The id of the tailored ProductVariant to update.

      Parameters:
      variantId - value to be set
    • setSku

      void setSku(String sku)

      The sku of the tailored ProductVariant to update.

      Parameters:
      sku - value to be set
    • setImageUrl

      void setImageUrl(String imageUrl)

      The URL of the image to remove.

      Parameters:
      imageUrl - value to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, only the staged image is removed. If false, both the current and staged image is removed.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of ProductTailoringRemoveImageAction
    • of

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

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

      builder factory method for ProductTailoringRemoveImageAction
      Returns:
      builder
    • builder

      create builder for ProductTailoringRemoveImageAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductTailoringRemoveImageAction

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