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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductVariantDeletedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductVariantDeletedMessagebuilder(ProductVariantDeletedMessage template) create builder for ProductVariantDeletedMessage instancecopyDeep()static ProductVariantDeletedMessagedeepCopy(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 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.static ProductVariantDeletedMessageof()factory methodstatic ProductVariantDeletedMessageof(ProductVariantDeletedMessage template) factory method to create a shallow copy ProductVariantDeletedMessagevoidsetRemovedImageUrls(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<ProductVariantDeletedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods 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
-
copyDeep
ProductVariantDeletedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
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
-