Interface ProductVariantDeletedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
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 Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantDeletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantDeletedMessagePayloadbuilder
(ProductVariantDeletedMessagePayload template) create builder for ProductVariantDeletedMessagePayload instancedeepCopy
(ProductVariantDeletedMessagePayload template) factory method to create a deep copy of ProductVariantDeletedMessagePayloadList of image URLs that were removed with the Remove Product Variant update action.@NotNull Boolean
Iftrue
, this message informs that only the staged ProductVariant has been removed by the update action.@Valid ProductVariant
Unique identifier of the Product Variant that was added.of()
factory methodof
(ProductVariantDeletedMessagePayload template) factory method to create a shallow copy ProductVariantDeletedMessagePayloadvoid
setRemovedImageUrls
(String... removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.void
setRemovedImageUrls
(List<String> removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.void
Iftrue
, this message informs that only the staged ProductVariant has been removed by the update action.void
setVariant
(ProductVariant variant) Unique identifier of the Product Variant that was added.static com.fasterxml.jackson.core.type.TypeReference<ProductVariantDeletedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
PRODUCT_VARIANT_DELETED
discriminator value for ProductVariantDeletedMessagePayload- See Also:
-
-
Method Details
-
getVariant
Unique identifier of the Product Variant that was added.
- Returns:
- variant
-
getRemovedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Returns:
- removedImageUrls
-
getStaged
If
true
, this message informs that only the staged ProductVariant has been removed by the update action. Iffalse
, both the current and staged ProductVariant have been removed.- Returns:
- staged
-
setVariant
Unique identifier of the Product Variant that was added.
- Parameters:
variant
- value to be set
-
setRemovedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Parameters:
removedImageUrls
- values to be set
-
setRemovedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Parameters:
removedImageUrls
- values to be set
-
setStaged
If
true
, this message informs that only the staged ProductVariant has been removed by the update action. Iffalse
, 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
@Nullable static ProductVariantDeletedMessagePayload deepCopy(@Nullable ProductVariantDeletedMessagePayload template) 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
static ProductVariantDeletedMessagePayloadBuilder builder(ProductVariantDeletedMessagePayload template) 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
-