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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductDeletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductDeletedMessagePayloadbuilder(ProductDeletedMessagePayload template) create builder for ProductDeletedMessagePayload instancecopyDeep()static ProductDeletedMessagePayloaddeepCopy(ProductDeletedMessagePayload template) factory method to create a deep copy of ProductDeletedMessagePayload@Valid ProductProjectionCurrent Product Projection of the deleted Product.List of image URLs that were removed during the Delete Product request.static ProductDeletedMessagePayloadof()factory methodstatic ProductDeletedMessagePayloadof(ProductDeletedMessagePayload template) factory method to create a shallow copy ProductDeletedMessagePayloadvoidsetCurrentProjection(ProductProjection currentProjection) Current Product Projection of the deleted Product.voidsetRemovedImageUrls(String... removedImageUrls) List of image URLs that were removed during the Delete Product request.voidsetRemovedImageUrls(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> 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_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
-
copyDeep
ProductDeletedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-