Interface ProductVariantDeletedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Remove ProductVariant update action.
Example to create an instance using the builder pattern
ProductVariantDeletedMessage productVariantDeletedMessage = ProductVariantDeletedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
.staged(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductVariantDeletedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductVariantDeletedMessagebuilder
(ProductVariantDeletedMessage template) create builder for ProductVariantDeletedMessage instancestatic ProductVariantDeletedMessage
deepCopy
(ProductVariantDeletedMessage template) factory method to create a deep copy of ProductVariantDeletedMessageList 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.static ProductVariantDeletedMessage
of()
factory methodstatic ProductVariantDeletedMessage
of
(ProductVariantDeletedMessage template) factory method to create a shallow copy ProductVariantDeletedMessagevoid
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<ProductVariantDeletedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PRODUCT_VARIANT_DELETED
discriminator value for ProductVariantDeletedMessage- 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 ProductVariantDeletedMessage
-
of
factory method to create a shallow copy ProductVariantDeletedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductVariantDeletedMessage deepCopy(@Nullable ProductVariantDeletedMessage template) factory method to create a deep copy of ProductVariantDeletedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductVariantDeletedMessage- Returns:
- builder
-
builder
create builder for ProductVariantDeletedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductVariantDeletedMessage
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
-