Interface ChangeSubscription
public interface ChangeSubscription
Notification about changes to a resource. The payload format differs for resource creation, update, and deletion.
Example to create an instance using the builder pattern
ChangeSubscription changeSubscription = ChangeSubscription.builder()
.resourceTypeId(ChangeSubscriptionResourceTypeId.APPROVAL_FLOW)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeSubscriptionBuilderbuilder()builder factory method for ChangeSubscriptionstatic ChangeSubscriptionBuilderbuilder(ChangeSubscription template) create builder for ChangeSubscription instancecopyDeep()static ChangeSubscriptiondeepCopy(ChangeSubscription template) factory method to create a deep copy of ChangeSubscription@NotNull ChangeSubscriptionResourceTypeIdUnique identifier for the type of resource, for example,order.static ChangeSubscriptionof()factory methodstatic ChangeSubscriptionof(ChangeSubscription template) factory method to create a shallow copy ChangeSubscriptionvoidsetResourceTypeId(ChangeSubscriptionResourceTypeId resourceTypeId) Unique identifier for the type of resource, for example,order.static com.fasterxml.jackson.core.type.TypeReference<ChangeSubscription>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithChangeSubscription(Function<ChangeSubscription, T> helper) accessor map function
-
Method Details
-
getResourceTypeId
Unique identifier for the type of resource, for example,
order.- Returns:
- resourceTypeId
-
setResourceTypeId
Unique identifier for the type of resource, for example,
order.- Parameters:
resourceTypeId- value to be set
-
of
factory method- Returns:
- instance of ChangeSubscription
-
of
factory method to create a shallow copy ChangeSubscription- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ChangeSubscription copyDeep() -
deepCopy
factory method to create a deep copy of ChangeSubscription- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChangeSubscription- Returns:
- builder
-
builder
create builder for ChangeSubscription instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withChangeSubscription
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-