Class ResourceCreatedDeliveryPayloadBuilder
- All Implemented Interfaces:
Builder<ResourceCreatedDeliveryPayload>
- Direct Known Subclasses:
ResourceCreatedDeliveryBuilder
Example to create an instance using the builder pattern
ResourceCreatedDeliveryPayload resourceCreatedDeliveryPayload = ResourceCreatedDeliveryPayload.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 ResourceCreatedDeliveryPayload with checking for non-null required valuesbuilds ResourceCreatedDeliveryPayload without checking for non-null required valuesDate and time (UTC) the resource was last modified.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 modified.of()
factory method for an instance of ResourceCreatedDeliveryPayloadBuilderof
(ResourceCreatedDeliveryPayload template) create builder for ResourceCreatedDeliveryPayload 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
-
ResourceCreatedDeliveryPayloadBuilder
public ResourceCreatedDeliveryPayloadBuilder()
-
-
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 ResourceCreatedDeliveryPayloadBuilder 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 ResourceCreatedDeliveryPayloadBuilder resourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiersBuilder> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
withResourceUserProvidedIdentifiers
public ResourceCreatedDeliveryPayloadBuilder withResourceUserProvidedIdentifiers(Function<UserProvidedIdentifiersBuilder, UserProvidedIdentifiers> builder) User-defined unique identifiers of the resource.
- Parameters:
builder
- function to build the resourceUserProvidedIdentifiers value- Returns:
- Builder
-
resourceUserProvidedIdentifiers
public ResourceCreatedDeliveryPayloadBuilder 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 modified.
- 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
-
getModifiedAt
Date and time (UTC) the resource was last modified.
- Returns:
- modifiedAt
-
build
builds ResourceCreatedDeliveryPayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ResourceCreatedDeliveryPayload>
- Returns:
- ResourceCreatedDeliveryPayload
-
buildUnchecked
builds ResourceCreatedDeliveryPayload without checking for non-null required values- Returns:
- ResourceCreatedDeliveryPayload
-
of
factory method for an instance of ResourceCreatedDeliveryPayloadBuilder- Returns:
- builder
-
of
create builder for ResourceCreatedDeliveryPayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-