Class ProductTailoringSetExternalImagesActionBuilder

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

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

     ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
             .build()
 
  • Constructor Details

    • ProductTailoringSetExternalImagesActionBuilder

      public ProductTailoringSetExternalImagesActionBuilder()
  • Method Details

    • 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
    • images

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • images

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • plusImages

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • plusImages

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • withImages

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • addImages

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • setImages

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • staged

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

      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
    • getImages

      @Nullable public List<Image> getImages()

      Images of the tailored ProductVariant.

      Don't provide this field if you want to remove all images from the tailored Product Variant. Set to [] (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.

      Returns:
      images
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • build

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

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

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

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