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