Interface ProductVariantDeletedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface ProductVariantDeletedMessagePayload extends MessagePayload

Generated after a successful Remove ProductVariant update action.


Example to create an instance using the builder pattern

     ProductVariantDeletedMessagePayload productVariantDeletedMessagePayload = ProductVariantDeletedMessagePayload.builder()
             .plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
             .staged(true)
             .build()
 
  • Field Details

    • PRODUCT_VARIANT_DELETED

      static final String PRODUCT_VARIANT_DELETED
      discriminator value for ProductVariantDeletedMessagePayload
      See Also:
  • Method Details

    • getVariant

      @Valid @Valid ProductVariant getVariant()

      Unique identifier of the Product Variant that was added.

      Returns:
      variant
    • getRemovedImageUrls

      @NotNull @NotNull List<String> getRemovedImageUrls()

      List of image URLs that were removed with the Remove Product Variant update action.

      Returns:
      removedImageUrls
    • getStaged

      @NotNull @NotNull Boolean getStaged()

      If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

      Returns:
      staged
    • setVariant

      void setVariant(ProductVariant variant)

      Unique identifier of the Product Variant that was added.

      Parameters:
      variant - value to be set
    • setRemovedImageUrls

      void setRemovedImageUrls(String... removedImageUrls)

      List of image URLs that were removed with the Remove Product Variant update action.

      Parameters:
      removedImageUrls - values to be set
    • setRemovedImageUrls

      void setRemovedImageUrls(List<String> removedImageUrls)

      List of image URLs that were removed with the Remove Product Variant update action.

      Parameters:
      removedImageUrls - values to be set
    • setStaged

      void setStaged(Boolean staged)

      If true, this message informs that only the staged ProductVariant has been removed by the update action. If false, both the current and staged ProductVariant have been removed.

      Parameters:
      staged - value to be set
    • of

      factory method
      Returns:
      instance of ProductVariantDeletedMessagePayload
    • of

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

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

      builder factory method for ProductVariantDeletedMessagePayload
      Returns:
      builder
    • builder

      create builder for ProductVariantDeletedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withProductVariantDeletedMessagePayload

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