Class ProductSetImageLabelActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductSetImageLabelActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductSetImageLabelAction>

public class ProductSetImageLabelActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductSetImageLabelAction>
ProductSetImageLabelActionBuilder
Example to create an instance using the builder pattern

     ProductSetImageLabelAction productSetImageLabelAction = ProductSetImageLabelAction.builder()
             .imageUrl("{imageUrl}")
             .build()
 
  • Constructor Details

    • ProductSetImageLabelActionBuilder

      public ProductSetImageLabelActionBuilder()
  • Method Details

    • sku

      The sku of the ProductVariant to update.

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

      public ProductSetImageLabelActionBuilder variantId(@Nullable Long variantId)

      The id of the ProductVariant to update.

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

      public ProductSetImageLabelActionBuilder imageUrl(String imageUrl)

      The URL of the image to set the label.

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

      Value to set. If empty, any existing value will be removed.

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

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

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

      @Nullable public String getSku()

      The sku of the ProductVariant to update.

      Returns:
      sku
    • getVariantId

      @Nullable public Long getVariantId()

      The id of the ProductVariant to update.

      Returns:
      variantId
    • getImageUrl

      public String getImageUrl()

      The URL of the image to set the label.

      Returns:
      imageUrl
    • getLabel

      @Nullable public String getLabel()

      Value to set. If empty, any existing value will be removed.

      Returns:
      label
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • build

      builds ProductSetImageLabelAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProductSetImageLabelAction>
      Returns:
      ProductSetImageLabelAction
    • buildUnchecked

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

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

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