Class ResourceUpdatedDeliveryPayloadImpl
- All Implemented Interfaces:
DeliveryPayload
,ResourceUpdatedDeliveryPayload
,io.vrap.rmf.base.client.ModelBase
This payload is sent for a ChangeSubscription when a resource is updated. This includes updates by a background process, like a change in product availability.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayload
RESOURCE_UPDATED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Date and time (UTC) the resource was last updated.Identifies the payload.Version of the resource before the update.key
of the Project.Reference to the resource that triggered the message.User-defined unique identifiers of the resource.Last seen version of the resource.int
hashCode()
void
setModifiedAt
(ZonedDateTime modifiedAt) Date and time (UTC) the resource was last updated.void
setOldVersion
(Long oldVersion) Version of the resource before the update.void
setProjectKey
(String projectKey) key
of the Project.void
setResource
(Reference resource) Reference to the resource that triggered the message.void
setResourceUserProvidedIdentifiers
(UserProvidedIdentifiers resourceUserProvidedIdentifiers) User-defined unique identifiers of the resource.void
setVersion
(Long version) Last seen version of the resource.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.subscription.DeliveryPayload
withDeliveryPayload
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayload
withResourceUpdatedDeliveryPayload
-
Constructor Details
-
ResourceUpdatedDeliveryPayloadImpl
public ResourceUpdatedDeliveryPayloadImpl()create empty instance
-
-
Method Details
-
getProjectKey
key
of the Project. Useful in message processing if the Destination receives events from multiple Projects.- Specified by:
getProjectKey
in interfaceDeliveryPayload
- Returns:
- projectKey
-
getNotificationType
Identifies the payload.
- Specified by:
getNotificationType
in interfaceDeliveryPayload
- Returns:
- notificationType
-
getResource
Reference to the resource that triggered the message.
- Specified by:
getResource
in interfaceDeliveryPayload
- Returns:
- resource
-
getResourceUserProvidedIdentifiers
User-defined unique identifiers of the resource.
- Specified by:
getResourceUserProvidedIdentifiers
in interfaceDeliveryPayload
- Returns:
- resourceUserProvidedIdentifiers
-
getVersion
Last seen version of the resource.
- Specified by:
getVersion
in interfaceResourceUpdatedDeliveryPayload
- Returns:
- version
-
getOldVersion
Version of the resource before the update.
- Specified by:
getOldVersion
in interfaceResourceUpdatedDeliveryPayload
- Returns:
- oldVersion
-
getModifiedAt
Date and time (UTC) the resource was last updated.
- Specified by:
getModifiedAt
in interfaceResourceUpdatedDeliveryPayload
- Returns:
- modifiedAt
-
setProjectKey
Description copied from interface:DeliveryPayload
key
of the Project. Useful in message processing if the Destination receives events from multiple Projects.- Specified by:
setProjectKey
in interfaceDeliveryPayload
- Parameters:
projectKey
- value to be set
-
setResource
Description copied from interface:DeliveryPayload
Reference to the resource that triggered the message.
- Specified by:
setResource
in interfaceDeliveryPayload
- Parameters:
resource
- value to be set
-
setResourceUserProvidedIdentifiers
public void setResourceUserProvidedIdentifiers(UserProvidedIdentifiers resourceUserProvidedIdentifiers) Description copied from interface:DeliveryPayload
User-defined unique identifiers of the resource.
- Specified by:
setResourceUserProvidedIdentifiers
in interfaceDeliveryPayload
- Parameters:
resourceUserProvidedIdentifiers
- value to be set
-
setVersion
Description copied from interface:ResourceUpdatedDeliveryPayload
Last seen version of the resource.
- Specified by:
setVersion
in interfaceResourceUpdatedDeliveryPayload
- Parameters:
version
- value to be set
-
setOldVersion
Description copied from interface:ResourceUpdatedDeliveryPayload
Version of the resource before the update.
- Specified by:
setOldVersion
in interfaceResourceUpdatedDeliveryPayload
- Parameters:
oldVersion
- value to be set
-
setModifiedAt
Description copied from interface:ResourceUpdatedDeliveryPayload
Date and time (UTC) the resource was last updated.
- Specified by:
setModifiedAt
in interfaceResourceUpdatedDeliveryPayload
- Parameters:
modifiedAt
- value to be set
-
equals
-
hashCode
public int hashCode()
-