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