Class ProductTailoringSetImageLabelActionBuilder

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

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

     ProductTailoringSetImageLabelAction productTailoringSetImageLabelAction = ProductTailoringSetImageLabelAction.builder()
             .imageUrl("{imageUrl}")
             .build()
 
  • Constructor Details

    • ProductTailoringSetImageLabelActionBuilder

      public ProductTailoringSetImageLabelActionBuilder()
  • Method Details

    • sku

      The sku of the tailored ProductVariant to update.

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

      public ProductTailoringSetImageLabelActionBuilder variantId(@Nullable Long variantId)

      The id of the tailored ProductVariant to update.

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

      The URL of the image to set the label.

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

      public ProductTailoringSetImageLabelActionBuilder label(@Nullable String label)

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

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

      public ProductTailoringSetImageLabelActionBuilder staged(@Nullable Boolean 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 tailored ProductVariant to update.

      Returns:
      sku
    • getVariantId

      @Nullable public Long getVariantId()

      The id of the tailored 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 ProductTailoringSetImageLabelAction with checking for non-null required values
      Specified by:
      build in interface Builder<ProductTailoringSetImageLabelAction>
      Returns:
      ProductTailoringSetImageLabelAction
    • buildUnchecked

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

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

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