Interface ResourceDeletedDeliveryPayload
- All Superinterfaces:
DeliveryPayload
- All Known Subinterfaces:
ResourceDeletedDelivery
This payload is sent for a ChangeSubscription when a resource is deleted.
Example to create an instance using the builder pattern
ResourceDeletedDeliveryPayload resourceDeletedDeliveryPayload = ResourceDeletedDeliveryPayload.builder()
.projectKey("{projectKey}")
.resource(resourceBuilder -> resourceBuilder)
.version(0.3)
.modifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ResourceDeletedDeliveryPayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ResourceDeletedDeliveryPayloadbuilder
(ResourceDeletedDeliveryPayload template) create builder for ResourceDeletedDeliveryPayload instancedeepCopy
(ResourceDeletedDeliveryPayload template) factory method to create a deep copy of ResourceDeletedDeliveryPayloadtrue
if thedataErasure
parameter on theDELETE
request was set totrue
.@NotNull ZonedDateTime
Date and time (UTC) the resource was last deleted.@NotNull Long
Last seen version of the resource.of()
factory methodof
(ResourceDeletedDeliveryPayload template) factory method to create a shallow copy ResourceDeletedDeliveryPayloadvoid
setDataErasure
(Boolean dataErasure) true
if thedataErasure
parameter on theDELETE
request was set totrue
.void
setModifiedAt
(ZonedDateTime modifiedAt) Date and time (UTC) the resource was last deleted.void
setVersion
(Long version) Last seen version of the resource.static com.fasterxml.jackson.core.type.TypeReference<ResourceDeletedDeliveryPayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.subscription.DeliveryPayload
getNotificationType, getProjectKey, getResource, getResourceUserProvidedIdentifiers, setProjectKey, setResource, setResourceUserProvidedIdentifiers, withDeliveryPayload
-
Field Details
-
RESOURCE_DELETED
discriminator value for ResourceDeletedDeliveryPayload- See Also:
-
-
Method Details
-
getVersion
Last seen version of the resource.
- Returns:
- version
-
getModifiedAt
Date and time (UTC) the resource was last deleted.
- Returns:
- modifiedAt
-
getDataErasure
Boolean getDataErasure()true
if thedataErasure
parameter on theDELETE
request was set totrue
.- Returns:
- dataErasure
-
setVersion
Last seen version of the resource.
- Parameters:
version
- value to be set
-
setModifiedAt
Date and time (UTC) the resource was last deleted.
- Parameters:
modifiedAt
- value to be set
-
setDataErasure
true
if thedataErasure
parameter on theDELETE
request was set totrue
.- Parameters:
dataErasure
- value to be set
-
of
factory method- Returns:
- instance of ResourceDeletedDeliveryPayload
-
of
factory method to create a shallow copy ResourceDeletedDeliveryPayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ResourceDeletedDeliveryPayload deepCopy(@Nullable ResourceDeletedDeliveryPayload template) factory method to create a deep copy of ResourceDeletedDeliveryPayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceDeletedDeliveryPayload- Returns:
- builder
-
builder
create builder for ResourceDeletedDeliveryPayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withResourceDeletedDeliveryPayload
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<ResourceDeletedDeliveryPayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-