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