Class ResourceDeletedDeliveryPayloadBuilder
- All Implemented Interfaces:
Builder<ResourceDeletedDeliveryPayload>
- Direct Known Subclasses:
ResourceDeletedDeliveryBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ResourceDeletedDeliveryPayload with checking for non-null required valuesbuilds ResourceDeletedDeliveryPayload without checking for non-null required valuesdataErasure
(Boolean dataErasure) true
if thedataErasure
parameter on theDELETE
request was set totrue
.true
if thedataErasure
parameter on theDELETE
request was set totrue
.Date and time (UTC) the resource was last deleted.key
of the Project.Reference to the resource that triggered the notification.User-defined unique identifiers of the resource.Last seen version of the resource.modifiedAt
(ZonedDateTime modifiedAt) Date and time (UTC) the resource was last deleted.of()
factory method for an instance of ResourceDeletedDeliveryPayloadBuilderof
(ResourceDeletedDeliveryPayload template) create builder for ResourceDeletedDeliveryPayload instanceprojectKey
(String projectKey) key
of the Project.Reference to the resource that triggered the notification.resource
(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that triggered the notification.resourceUserProvidedIdentifiers
(UserProvidedIdentifiers resourceUserProvidedIdentifiers) User-defined unique identifiers of the resource.resourceUserProvidedIdentifiers
(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiersBuilder> builder) User-defined unique identifiers of the resource.Last seen version of the resource.withResourceUserProvidedIdentifiers
(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiers> builder) User-defined unique identifiers of the resource.
-
Constructor Details
-
ResourceDeletedDeliveryPayloadBuilder
public ResourceDeletedDeliveryPayloadBuilder()
-
-
Method Details
-
projectKey
key
of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.- Parameters:
projectKey
- value to be set- Returns:
- Builder
-
resource
Reference to the resource that triggered the notification.
- Parameters:
resource
- value to be set- Returns:
- Builder
-
resource
public ResourceDeletedDeliveryPayloadBuilder resource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that triggered the notification.
- Parameters:
builder
- function to build the resource value- Returns:
- Builder
-
resourceUserProvidedIdentifiers
public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiersBuilder> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
withResourceUserProvidedIdentifiers
public ResourceDeletedDeliveryPayloadBuilder withResourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiers> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
resourceUserProvidedIdentifiers
public ResourceDeletedDeliveryPayloadBuilder resourceUserProvidedIdentifiers(@Nullable UserProvidedIdentifiers resourceUserProvidedIdentifiers) User-defined unique identifiers of the resource.
- Parameters:
resourceUserProvidedIdentifiers
- value to be set- Returns:
- Builder
-
version
Last seen version of the resource.
- Parameters:
version
- value to be set- Returns:
- Builder
-
modifiedAt
Date and time (UTC) the resource was last deleted.
- Parameters:
modifiedAt
- value to be set- Returns:
- Builder
-
dataErasure
true
if thedataErasure
parameter on theDELETE
request was set totrue
.- Parameters:
dataErasure
- value to be set- Returns:
- Builder
-
getProjectKey
key
of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.- Returns:
- projectKey
-
getResource
Reference to the resource that triggered the notification.
- Returns:
- resource
-
getResourceUserProvidedIdentifiers
User-defined unique identifiers of the resource.
- Returns:
- resourceUserProvidedIdentifiers
-
getVersion
Last seen version of the resource.
- Returns:
- version
-
getModifiedAt
Date and time (UTC) the resource was last deleted.
- Returns:
- modifiedAt
-
getDataErasure
true
if thedataErasure
parameter on theDELETE
request was set totrue
.- Returns:
- dataErasure
-
build
builds ResourceDeletedDeliveryPayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceDeletedDeliveryPayload>
- Returns:
- ResourceDeletedDeliveryPayload
-
buildUnchecked
builds ResourceDeletedDeliveryPayload without checking for non-null required values- Returns:
- ResourceDeletedDeliveryPayload
-
of
factory method for an instance of ResourceDeletedDeliveryPayloadBuilder- Returns:
- builder
-
of
create builder for ResourceDeletedDeliveryPayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-