Interface DeliveryPayload

All Known Subinterfaces:
MessageDelivery, MessageDeliveryPayload, ResourceCreatedDelivery, ResourceCreatedDeliveryPayload, ResourceDeletedDelivery, ResourceDeletedDeliveryPayload, ResourceUpdatedDelivery, ResourceUpdatedDeliveryPayload, SubscriptionDelivery
All Known Implementing Classes:
DeliveryPayloadImpl, MessageDeliveryPayloadImpl, ResourceCreatedDeliveryPayloadImpl, ResourceDeletedDeliveryPayloadImpl, ResourceUpdatedDeliveryPayloadImpl

public interface DeliveryPayload

All payloads for the PlatformFormat share these common fields.


Example to create a subtype instance using the builder pattern

     DeliveryPayload deliveryPayload = DeliveryPayload.messageBuilder()
             projectKey("{projectKey}")
             resource(resourceBuilder -> resourceBuilder)
             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)
             resourceVersion(0.3)
             .build()