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