Interface ProductDeletedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Delete Product request.
Example to create an instance using the builder pattern
ProductDeletedMessagePayload productDeletedMessagePayload = ProductDeletedMessagePayload.builder()
.plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductDeletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductDeletedMessagePayloadbuilder
(ProductDeletedMessagePayload template) create builder for ProductDeletedMessagePayload instancestatic ProductDeletedMessagePayload
deepCopy
(ProductDeletedMessagePayload template) factory method to create a deep copy of ProductDeletedMessagePayload@Valid ProductProjection
Current Product Projection of the deleted Product.List of image URLs that were removed during the Delete Product request.static ProductDeletedMessagePayload
of()
factory methodstatic ProductDeletedMessagePayload
of
(ProductDeletedMessagePayload template) factory method to create a shallow copy ProductDeletedMessagePayloadvoid
setCurrentProjection
(ProductProjection currentProjection) Current Product Projection of the deleted Product.void
setRemovedImageUrls
(String... removedImageUrls) List of image URLs that were removed during the Delete Product request.void
setRemovedImageUrls
(List<String> removedImageUrls) List of image URLs that were removed during the Delete Product request.static com.fasterxml.jackson.core.type.TypeReference<ProductDeletedMessagePayload>
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_DELETED
discriminator value for ProductDeletedMessagePayload- See Also:
-
-
Method Details
-
getRemovedImageUrls
List of image URLs that were removed during the Delete Product request.
- Returns:
- removedImageUrls
-
getCurrentProjection
Current Product Projection of the deleted Product.
- Returns:
- currentProjection
-
setRemovedImageUrls
List of image URLs that were removed during the Delete Product request.
- Parameters:
removedImageUrls
- values to be set
-
setRemovedImageUrls
List of image URLs that were removed during the Delete Product request.
- Parameters:
removedImageUrls
- values to be set
-
setCurrentProjection
Current Product Projection of the deleted Product.
- Parameters:
currentProjection
- value to be set
-
of
factory method- Returns:
- instance of ProductDeletedMessagePayload
-
of
factory method to create a shallow copy ProductDeletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductDeletedMessagePayload deepCopy(@Nullable ProductDeletedMessagePayload template) factory method to create a deep copy of ProductDeletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductDeletedMessagePayload- Returns:
- builder
-
builder
create builder for ProductDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductDeletedMessagePayload
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-