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 SubscriptionUpdateBuilderbuilder()builder factory method for SubscriptionUpdatestatic SubscriptionUpdateBuilderbuilder(SubscriptionUpdate template) create builder for SubscriptionUpdate instancecopyDeep()static SubscriptionUpdatedeepCopy(SubscriptionUpdate template) factory method to create a deep copy of SubscriptionUpdate@NotNull @Valid List<SubscriptionUpdateAction>Update actions to be performed on the Subscription.@NotNull LongExpected version of the Subscription on which the changes should be applied.static SubscriptionUpdateof()factory methodstatic SubscriptionUpdateof(SubscriptionUpdate template) factory method to create a shallow copy SubscriptionUpdatevoidsetActions(SubscriptionUpdateAction... actions) Update actions to be performed on the Subscription.voidsetActions(List<SubscriptionUpdateAction> actions) Update actions to be performed on the Subscription.voidsetVersion(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> TwithSubscriptionUpdate(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:
getVersionin interfaceResourceUpdate<SubscriptionUpdate,SubscriptionUpdateAction, SubscriptionUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Subscription.
- Specified by:
getActionsin 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:
setVersionin 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:
setActionsin 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
-
copyDeep
SubscriptionUpdate copyDeep() -
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
-