Class ChangeTextLineItemsOrderChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeTextLineItemsOrderChangeBuilder
- All Implemented Interfaces:
Builder<ChangeTextLineItemsOrderChange>
public class ChangeTextLineItemsOrderChangeBuilder
extends Object
implements Builder<ChangeTextLineItemsOrderChange>
ChangeTextLineItemsOrderChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeTextLineItemsOrderChange changeTextLineItemsOrderChange = ChangeTextLineItemsOrderChange.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 ChangeTextLineItemsOrderChange with checking for non-null required valuesbuilds ChangeTextLineItemsOrderChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(TextLineItemValue... nextValue) Value after the change.nextValue
(List<TextLineItemValue> nextValue) Value after the change.of()
factory method for an instance of ChangeTextLineItemsOrderChangeBuilderof
(ChangeTextLineItemsOrderChange template) create builder for ChangeTextLineItemsOrderChange instanceplusNextValue
(TextLineItemValue... nextValue) Value after the change.Value after the change.plusPreviousValue
(TextLineItemValue... previousValue) Value before the change.Value before the change.previousValue
(TextLineItemValue... previousValue) Value before the change.previousValue
(List<TextLineItemValue> previousValue) Value before the change.Value after the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
ChangeTextLineItemsOrderChangeBuilder
public ChangeTextLineItemsOrderChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public ChangeTextLineItemsOrderChangeBuilder plusPreviousValue(Function<TextLineItemValueBuilder, TextLineItemValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangeTextLineItemsOrderChangeBuilder withPreviousValue(Function<TextLineItemValueBuilder, TextLineItemValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public ChangeTextLineItemsOrderChangeBuilder addPreviousValue(Function<TextLineItemValueBuilder, TextLineItemValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public ChangeTextLineItemsOrderChangeBuilder setPreviousValue(Function<TextLineItemValueBuilder, TextLineItemValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
plusNextValue
public ChangeTextLineItemsOrderChangeBuilder plusNextValue(Function<TextLineItemValueBuilder, TextLineItemValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangeTextLineItemsOrderChangeBuilder withNextValue(Function<TextLineItemValueBuilder, TextLineItemValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public ChangeTextLineItemsOrderChangeBuilder addNextValue(Function<TextLineItemValueBuilder, TextLineItemValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public ChangeTextLineItemsOrderChangeBuilder setNextValue(Function<TextLineItemValueBuilder, TextLineItemValue> 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 ChangeTextLineItemsOrderChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeTextLineItemsOrderChange>
- Returns:
- ChangeTextLineItemsOrderChange
-
buildUnchecked
builds ChangeTextLineItemsOrderChange without checking for non-null required values- Returns:
- ChangeTextLineItemsOrderChange
-
of
factory method for an instance of ChangeTextLineItemsOrderChangeBuilder- Returns:
- builder
-
of
create builder for ChangeTextLineItemsOrderChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-