Class OrderEditUpdateBuilder
- All Implemented Interfaces:
Builder<OrderEditUpdate>
Example to create an instance using the builder pattern
OrderEditUpdate orderEditUpdate = OrderEditUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(OrderEditUpdateAction... actions) Update actions to be performed on the Order Edit.actions
(List<OrderEditUpdateAction> actions) Update actions to be performed on the Order Edit.build()
builds OrderEditUpdate with checking for non-null required valuesbuilds OrderEditUpdate without checking for non-null required valuesIf set totrue
, the Order Edit is applied on the Order without persisting it.Update actions to be performed on the Order Edit.If set totrue
, the Order Edit is applied on the Order without persisting it.Expected version of the Order Edit on which the changes should be applied.static OrderEditUpdateBuilder
of()
factory method for an instance of OrderEditUpdateBuilderstatic OrderEditUpdateBuilder
of
(OrderEditUpdate template) create builder for OrderEditUpdate instanceplusActions
(OrderEditUpdateAction... actions) Update actions to be performed on the Order Edit.plusActions
(Function<OrderEditUpdateActionBuilder, Builder<? extends OrderEditUpdateAction>> builder) Update actions to be performed on the Order Edit.Expected version of the Order Edit on which the changes should be applied.withActions
(Function<OrderEditUpdateActionBuilder, Builder<? extends OrderEditUpdateAction>> builder) Update actions to be performed on the Order Edit.
-
Constructor Details
-
OrderEditUpdateBuilder
public OrderEditUpdateBuilder()
-
-
Method Details
-
version
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.
- Parameters:
version
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the Order Edit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the Order Edit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the Order Edit.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public OrderEditUpdateBuilder plusActions(Function<OrderEditUpdateActionBuilder, Builder<? extends OrderEditUpdateAction>> builder) Update actions to be performed on the Order Edit.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public OrderEditUpdateBuilder withActions(Function<OrderEditUpdateActionBuilder, Builder<? extends OrderEditUpdateAction>> builder) Update actions to be performed on the Order Edit.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
dryRun
If set to
true
, the Order Edit is applied on the Order without persisting it.- Parameters:
dryRun
- value to be set- Returns:
- Builder
-
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.
- Returns:
- version
-
getActions
Update actions to be performed on the Order Edit.
- Returns:
- actions
-
getDryRun
If set to
true
, the Order Edit is applied on the Order without persisting it.- Returns:
- dryRun
-
build
builds OrderEditUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditUpdate>
- Returns:
- OrderEditUpdate
-
buildUnchecked
builds OrderEditUpdate without checking for non-null required values- Returns:
- OrderEditUpdate
-
of
factory method for an instance of OrderEditUpdateBuilder- Returns:
- builder
-
of
create builder for OrderEditUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-