Class ChangeShoppingListLineItemsOrderChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeShoppingListLineItemsOrderChangeBuilder
- All Implemented Interfaces:
Builder<ChangeShoppingListLineItemsOrderChange>
public class ChangeShoppingListLineItemsOrderChangeBuilder
extends Object
implements Builder<ChangeShoppingListLineItemsOrderChange>
ChangeShoppingListLineItemsOrderChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeShoppingListLineItemsOrderChange changeShoppingListLineItemsOrderChange = ChangeShoppingListLineItemsOrderChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue after the change.Value before the change.build()
builds ChangeShoppingListLineItemsOrderChange with checking for non-null required valuesbuilds ChangeShoppingListLineItemsOrderChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(ShoppingListLineItemValue... nextValue) Value after the change.nextValue
(List<ShoppingListLineItemValue> nextValue) Value after the change.of()
factory method for an instance of ChangeShoppingListLineItemsOrderChangeBuilderof
(ChangeShoppingListLineItemsOrderChange template) create builder for ChangeShoppingListLineItemsOrderChange instanceplusNextValue
(ShoppingListLineItemValue... nextValue) Value after the change.Value after the change.plusPreviousValue
(ShoppingListLineItemValue... previousValue) Value before the change.plusPreviousValue
(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value before the change.previousValue
(ShoppingListLineItemValue... previousValue) Value before the change.previousValue
(List<ShoppingListLineItemValue> previousValue) Value before the change.Value after the change.Value before the change.Value after the change.withPreviousValue
(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value before the change.
-
Constructor Details
-
ChangeShoppingListLineItemsOrderChangeBuilder
public ChangeShoppingListLineItemsOrderChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public ChangeShoppingListLineItemsOrderChangeBuilder previousValue(ShoppingListLineItemValue... previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
previousValue
public ChangeShoppingListLineItemsOrderChangeBuilder previousValue(List<ShoppingListLineItemValue> previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public ChangeShoppingListLineItemsOrderChangeBuilder plusPreviousValue(ShoppingListLineItemValue... previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public ChangeShoppingListLineItemsOrderChangeBuilder plusPreviousValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangeShoppingListLineItemsOrderChangeBuilder withPreviousValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public ChangeShoppingListLineItemsOrderChangeBuilder addPreviousValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public ChangeShoppingListLineItemsOrderChangeBuilder setPreviousValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
nextValue
public ChangeShoppingListLineItemsOrderChangeBuilder nextValue(ShoppingListLineItemValue... nextValue) Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
nextValue
public ChangeShoppingListLineItemsOrderChangeBuilder nextValue(List<ShoppingListLineItemValue> nextValue) Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public ChangeShoppingListLineItemsOrderChangeBuilder plusNextValue(ShoppingListLineItemValue... nextValue) Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public ChangeShoppingListLineItemsOrderChangeBuilder plusNextValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangeShoppingListLineItemsOrderChangeBuilder withNextValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public ChangeShoppingListLineItemsOrderChangeBuilder addNextValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public ChangeShoppingListLineItemsOrderChangeBuilder setNextValue(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds ChangeShoppingListLineItemsOrderChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeShoppingListLineItemsOrderChange>
- Returns:
- ChangeShoppingListLineItemsOrderChange
-
buildUnchecked
builds ChangeShoppingListLineItemsOrderChange without checking for non-null required values- Returns:
- ChangeShoppingListLineItemsOrderChange
-
of
factory method for an instance of ChangeShoppingListLineItemsOrderChangeBuilder- Returns:
- builder
-
of
public static ChangeShoppingListLineItemsOrderChangeBuilder of(ChangeShoppingListLineItemsOrderChange template) create builder for ChangeShoppingListLineItemsOrderChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-