Class ProductTailoringRemoveImageActionBuilder

java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveImageActionBuilder
All Implemented Interfaces:
Builder<ProductTailoringRemoveImageAction>

public class ProductTailoringRemoveImageActionBuilder extends Object implements Builder<ProductTailoringRemoveImageAction>
ProductTailoringRemoveImageActionBuilder
Example to create an instance using the builder pattern

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

    • ProductTailoringRemoveImageActionBuilder

      public ProductTailoringRemoveImageActionBuilder()
  • Method Details

    • variantId

      public ProductTailoringRemoveImageActionBuilder variantId(@Nullable Long variantId)

      The id of the tailored ProductVariant to update.

      Parameters:
      variantId - value to be set
      Returns:
      Builder
    • sku

      The sku of the tailored ProductVariant to update.

      Parameters:
      sku - value to be set
      Returns:
      Builder
    • imageUrl

      The URL of the image to remove.

      Parameters:
      imageUrl - value to be set
      Returns:
      Builder
    • staged

      public ProductTailoringRemoveImageActionBuilder staged(@Nullable 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
      Returns:
      Builder
    • getVariantId

      @Nullable public Long getVariantId()

      The id of the tailored ProductVariant to update.

      Returns:
      variantId
    • getSku

      @Nullable public String getSku()

      The sku of the tailored ProductVariant to update.

      Returns:
      sku
    • getImageUrl

      public String getImageUrl()

      The URL of the image to remove.

      Returns:
      imageUrl
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • build

      builds ProductTailoringRemoveImageAction with checking for non-null required values
      Specified by:
      build in interface Builder<ProductTailoringRemoveImageAction>
      Returns:
      ProductTailoringRemoveImageAction
    • buildUnchecked

      public ProductTailoringRemoveImageAction buildUnchecked()
      builds ProductTailoringRemoveImageAction without checking for non-null required values
      Returns:
      ProductTailoringRemoveImageAction
    • of

      factory method for an instance of ProductTailoringRemoveImageActionBuilder
      Returns:
      builder
    • of

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