Interface ResourceCreatedDeliveryPayload
- All Superinterfaces:
DeliveryPayload
- All Known Subinterfaces:
ResourceCreatedDelivery
This payload is sent for a ChangeSubscription when a resource is created.
Example to create an instance using the builder pattern
ResourceCreatedDeliveryPayload resourceCreatedDeliveryPayload = ResourceCreatedDeliveryPayload.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 ResourceCreatedDeliveryPayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ResourceCreatedDeliveryPayloadbuilder
(ResourceCreatedDeliveryPayload template) create builder for ResourceCreatedDeliveryPayload instancedeepCopy
(ResourceCreatedDeliveryPayload template) factory method to create a deep copy of ResourceCreatedDeliveryPayload@NotNull ZonedDateTime
Date and time (UTC) the resource was last modified.@NotNull Long
Last seen version of the resource.of()
factory methodof
(ResourceCreatedDeliveryPayload template) factory method to create a shallow copy ResourceCreatedDeliveryPayloadvoid
setModifiedAt
(ZonedDateTime modifiedAt) Date and time (UTC) the resource was last modified.void
setVersion
(Long version) Last seen version of the resource.static com.fasterxml.jackson.core.type.TypeReference<ResourceCreatedDeliveryPayload>
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_CREATED
discriminator value for ResourceCreatedDeliveryPayload- See Also:
-
-
Method Details
-
getVersion
Last seen version of the resource.
- Returns:
- version
-
getModifiedAt
Date and time (UTC) the resource was last modified.
- Returns:
- modifiedAt
-
setVersion
Last seen version of the resource.
- Parameters:
version
- value to be set
-
setModifiedAt
Date and time (UTC) the resource was last modified.
- Parameters:
modifiedAt
- value to be set
-
of
factory method- Returns:
- instance of ResourceCreatedDeliveryPayload
-
of
factory method to create a shallow copy ResourceCreatedDeliveryPayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ResourceCreatedDeliveryPayload deepCopy(@Nullable ResourceCreatedDeliveryPayload template) factory method to create a deep copy of ResourceCreatedDeliveryPayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceCreatedDeliveryPayload- Returns:
- builder
-
builder
create builder for ResourceCreatedDeliveryPayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withResourceCreatedDeliveryPayload
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<ResourceCreatedDeliveryPayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-