Class RecurringOrderUpdateBuilder
java.lang.Object
com.commercetools.api.models.recurring_order.RecurringOrderUpdateBuilder
- All Implemented Interfaces:
Builder<RecurringOrderUpdate>
RecurringOrderUpdateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RecurringOrderUpdate recurringOrderUpdate = RecurringOrderUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions
(RecurringOrderUpdateAction... actions) Update actions to be performed on the RecurringOrder.actions
(List<RecurringOrderUpdateAction> actions) Update actions to be performed on the RecurringOrder.build()
builds RecurringOrderUpdate with checking for non-null required valuesbuilds RecurringOrderUpdate without checking for non-null required valuesUpdate actions to be performed on the RecurringOrder.Expected version of the RecurringOrder on which the changes should be applied.static RecurringOrderUpdateBuilder
of()
factory method for an instance of RecurringOrderUpdateBuilderstatic RecurringOrderUpdateBuilder
of
(RecurringOrderUpdate template) create builder for RecurringOrderUpdate instanceplusActions
(RecurringOrderUpdateAction... actions) Update actions to be performed on the RecurringOrder.plusActions
(Function<RecurringOrderUpdateActionBuilder, Builder<? extends RecurringOrderUpdateAction>> builder) Update actions to be performed on the RecurringOrder.Expected version of the RecurringOrder on which the changes should be applied.withActions
(Function<RecurringOrderUpdateActionBuilder, Builder<? extends RecurringOrderUpdateAction>> builder) Update actions to be performed on the RecurringOrder.
-
Constructor Details
-
RecurringOrderUpdateBuilder
public RecurringOrderUpdateBuilder()
-
-
Method Details
-
version
Expected version of the RecurringOrder 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 RecurringOrder.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
actions
Update actions to be performed on the RecurringOrder.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
Update actions to be performed on the RecurringOrder.
- Parameters:
actions
- value to be set- Returns:
- Builder
-
plusActions
public RecurringOrderUpdateBuilder plusActions(Function<RecurringOrderUpdateActionBuilder, Builder<? extends RecurringOrderUpdateAction>> builder) Update actions to be performed on the RecurringOrder.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
withActions
public RecurringOrderUpdateBuilder withActions(Function<RecurringOrderUpdateActionBuilder, Builder<? extends RecurringOrderUpdateAction>> builder) Update actions to be performed on the RecurringOrder.
- Parameters:
builder
- function to build the actions value- Returns:
- Builder
-
getVersion
Expected version of the RecurringOrder 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 RecurringOrder.
- Returns:
- actions
-
build
builds RecurringOrderUpdate with checking for non-null required values- Specified by:
build
in interfaceBuilder<RecurringOrderUpdate>
- Returns:
- RecurringOrderUpdate
-
buildUnchecked
builds RecurringOrderUpdate without checking for non-null required values- Returns:
- RecurringOrderUpdate
-
of
factory method for an instance of RecurringOrderUpdateBuilder- Returns:
- builder
-
of
create builder for RecurringOrderUpdate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-