Interface SubscriptionUpdate
- All Superinterfaces:
ResourceUpdate<SubscriptionUpdate,
SubscriptionUpdateAction, SubscriptionUpdateBuilder>
public interface SubscriptionUpdate
extends ResourceUpdate<SubscriptionUpdate,SubscriptionUpdateAction,SubscriptionUpdateBuilder>
SubscriptionUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubscriptionUpdate subscriptionUpdate = SubscriptionUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionUpdateBuilder
builder()
builder factory method for SubscriptionUpdatestatic SubscriptionUpdateBuilder
builder
(SubscriptionUpdate template) create builder for SubscriptionUpdate instancestatic SubscriptionUpdate
deepCopy
(SubscriptionUpdate template) factory method to create a deep copy of SubscriptionUpdate@NotNull @Valid List<SubscriptionUpdateAction>
Update actions to be performed on the Subscription.@NotNull Long
Expected version of the Subscription on which the changes should be applied.static SubscriptionUpdate
of()
factory methodstatic SubscriptionUpdate
of
(SubscriptionUpdate template) factory method to create a shallow copy SubscriptionUpdatevoid
setActions
(SubscriptionUpdateAction... actions) Update actions to be performed on the Subscription.void
setActions
(List<SubscriptionUpdateAction> actions) Update actions to be performed on the Subscription.void
setVersion
(Long version) Expected version of the Subscription on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<SubscriptionUpdate>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withSubscriptionUpdate
(Function<SubscriptionUpdate, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Method Details
-
getVersion
Expected version of the Subscription on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
getVersion
in interfaceResourceUpdate<SubscriptionUpdate,
SubscriptionUpdateAction, SubscriptionUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Subscription.
- Specified by:
getActions
in interfaceResourceUpdate<SubscriptionUpdate,
SubscriptionUpdateAction, SubscriptionUpdateBuilder> - Returns:
- actions
-
setVersion
Expected version of the Subscription on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Specified by:
setVersion
in interfaceResourceUpdate<SubscriptionUpdate,
SubscriptionUpdateAction, SubscriptionUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Update actions to be performed on the Subscription.
- Parameters:
actions
- values to be set
-
setActions
Update actions to be performed on the Subscription.
- Specified by:
setActions
in interfaceResourceUpdate<SubscriptionUpdate,
SubscriptionUpdateAction, SubscriptionUpdateBuilder> - Parameters:
actions
- values to be set
-
of
factory method- Returns:
- instance of SubscriptionUpdate
-
of
factory method to create a shallow copy SubscriptionUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of SubscriptionUpdate- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for SubscriptionUpdate- Returns:
- builder
-
builder
create builder for SubscriptionUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withSubscriptionUpdate
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
-