Interface ProductTailoringSetExternalImagesAction

All Superinterfaces:
ProductTailoringUpdateAction

public interface ProductTailoringSetExternalImagesAction extends ProductTailoringUpdateAction

Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.


Example to create an instance using the builder pattern

     ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
             .plusImages(imagesBuilder -> imagesBuilder)
             .build()
 
  • Field Details

    • SET_IMAGES

      static final String SET_IMAGES
      discriminator value for ProductTailoringSetExternalImagesAction
      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
    • getImages

      @NotNull @Valid @NotNull @Valid List<Image> getImages()

      Value to set to images.

      Returns:
      images
    • getStaged

      Boolean getStaged()

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

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

      void setImages(Image... images)

      Value to set to images.

      Parameters:
      images - values to be set
    • setImages

      void setImages(List<Image> images)

      Value to set to images.

      Parameters:
      images - values to be set
    • setStaged

      void setStaged(Boolean 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
    • of

      factory method
      Returns:
      instance of ProductTailoringSetExternalImagesAction
    • of

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

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

      builder factory method for ProductTailoringSetExternalImagesAction
      Returns:
      builder
    • builder

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

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