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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductVariantDeletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantDeletedMessagePayloadbuilder(ProductVariantDeletedMessagePayload template) create builder for ProductVariantDeletedMessagePayload instancecopyDeep()deepCopy(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 BooleanIftrue, this message informs that only the staged ProductVariant has been removed by the update action.@Valid ProductVariantUnique identifier of the Product Variant that was added.of()factory methodof(ProductVariantDeletedMessagePayload template) factory method to create a shallow copy ProductVariantDeletedMessagePayloadvoidsetRemovedImageUrls(String... removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.voidsetRemovedImageUrls(List<String> removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.voidIftrue, this message informs that only the staged ProductVariant has been removed by the update action.voidsetVariant(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
-
copyDeep
ProductVariantDeletedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-