Class ResourceUpdatedDeliveryPayloadBuilder
- All Implemented Interfaces:
Builder<ResourceUpdatedDeliveryPayload>
- Direct Known Subclasses:
ResourceUpdatedDeliveryBuilder
Example to create an instance using the builder pattern
ResourceUpdatedDeliveryPayload resourceUpdatedDeliveryPayload = ResourceUpdatedDeliveryPayload.builder()
.projectKey("{projectKey}")
.resource(resourceBuilder -> resourceBuilder)
.version(0.3)
.oldVersion(0.3)
.modifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ResourceUpdatedDeliveryPayload with checking for non-null required valuesbuilds ResourceUpdatedDeliveryPayload without checking for non-null required valuesDate and time (UTC) the resource was last updated.Version of the resource before the update.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 updated.of()
factory method for an instance of ResourceUpdatedDeliveryPayloadBuilderof
(ResourceUpdatedDeliveryPayload template) create builder for ResourceUpdatedDeliveryPayload instanceoldVersion
(Long oldVersion) Version of the resource before the update.projectKey
(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
-
ResourceUpdatedDeliveryPayloadBuilder
public ResourceUpdatedDeliveryPayloadBuilder()
-
-
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 ResourceUpdatedDeliveryPayloadBuilder 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 ResourceUpdatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiersBuilder> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
withResourceUserProvidedIdentifiers
public ResourceUpdatedDeliveryPayloadBuilder withResourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiers> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
resourceUserProvidedIdentifiers
public ResourceUpdatedDeliveryPayloadBuilder 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
-
oldVersion
Version of the resource before the update.
- Parameters:
oldVersion
- value to be set- Returns:
- Builder
-
modifiedAt
Date and time (UTC) the resource was last updated.
- Parameters:
modifiedAt
- 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
-
getOldVersion
Version of the resource before the update.
- Returns:
- oldVersion
-
getModifiedAt
Date and time (UTC) the resource was last updated.
- Returns:
- modifiedAt
-
build
builds ResourceUpdatedDeliveryPayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceUpdatedDeliveryPayload>
- Returns:
- ResourceUpdatedDeliveryPayload
-
buildUnchecked
builds ResourceUpdatedDeliveryPayload without checking for non-null required values- Returns:
- ResourceUpdatedDeliveryPayload
-
of
factory method for an instance of ResourceUpdatedDeliveryPayloadBuilder- Returns:
- builder
-
of
create builder for ResourceUpdatedDeliveryPayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-