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