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 ChangeSubscriptionBuilder
builder()
builder factory method for ChangeSubscriptionstatic ChangeSubscriptionBuilder
builder
(ChangeSubscription template) create builder for ChangeSubscription instancestatic ChangeSubscription
deepCopy
(ChangeSubscription template) factory method to create a deep copy of ChangeSubscription@NotNull ChangeSubscriptionResourceTypeId
Unique identifier for the type of resource, for example,cart
.static ChangeSubscription
of()
factory methodstatic ChangeSubscription
of
(ChangeSubscription template) factory method to create a shallow copy ChangeSubscriptionvoid
setResourceTypeId
(ChangeSubscriptionResourceTypeId resourceTypeId) Unique identifier for the type of resource, for example,cart
.static com.fasterxml.jackson.core.type.TypeReference<ChangeSubscription>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withChangeSubscription
(Function<ChangeSubscription, T> helper) accessor map function
-
Method Details
-
getResourceTypeId
Unique identifier for the type of resource, for example,
cart
.- Returns:
- resourceTypeId
-
setResourceTypeId
Unique identifier for the type of resource, for example,
cart
.- 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
-
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
-