Class DeliveryPayloadImpl
java.lang.Object
com.commercetools.api.models.subscription.DeliveryPayloadImpl
- All Implemented Interfaces:
DeliveryPayload
,io.vrap.rmf.base.client.ModelBase
public class DeliveryPayloadImpl
extends Object
implements DeliveryPayload, io.vrap.rmf.base.client.ModelBase
All payloads for the PlatformFormat share these common fields.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Identifies the payload.key
of the Project.Reference to the resource that triggered the message.User-defined unique identifiers of the resource.int
hashCode()
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.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
-
Constructor Details
-
DeliveryPayloadImpl
public DeliveryPayloadImpl()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
-
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
-
equals
-
hashCode
public int hashCode()
-