Class ChangeEnumValueOrderChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeEnumValueOrderChangeBuilder
- All Implemented Interfaces:
Builder<ChangeEnumValueOrderChange>
public class ChangeEnumValueOrderChangeBuilder
extends Object
implements Builder<ChangeEnumValueOrderChange>
ChangeEnumValueOrderChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeEnumValueOrderChange changeEnumValueOrderChange = ChangeEnumValueOrderChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.fieldName("{fieldName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNextValue
(Function<EnumValueBuilder, EnumValue> builder) Value after the change.addPreviousValue
(Function<EnumValueBuilder, EnumValue> builder) Value before the change.build()
builds ChangeEnumValueOrderChange with checking for non-null required valuesbuilds ChangeEnumValueOrderChange without checking for non-null required valuesset the value to the changeName of the updated FieldDefinition.value of change}Name of the updated FieldDefinition.Value after the change.Value before the change.Value after the change.Value after the change.of()
factory method for an instance of ChangeEnumValueOrderChangeBuilderof
(ChangeEnumValueOrderChange template) create builder for ChangeEnumValueOrderChange instanceplusNextValue
(EnumValue... nextValue) Value after the change.Value after the change.plusPreviousValue
(EnumValue... previousValue) Value before the change.Value before the change.previousValue
(EnumValue... previousValue) Value before the change.previousValue
(List<EnumValue> previousValue) Value before the change.setNextValue
(Function<EnumValueBuilder, EnumValue> builder) Value after the change.setPreviousValue
(Function<EnumValueBuilder, EnumValue> builder) Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
ChangeEnumValueOrderChangeBuilder
public ChangeEnumValueOrderChangeBuilder()
-
-
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 ChangeEnumValueOrderChangeBuilder plusPreviousValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangeEnumValueOrderChangeBuilder withPreviousValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public ChangeEnumValueOrderChangeBuilder addPreviousValue(Function<EnumValueBuilder, EnumValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public ChangeEnumValueOrderChangeBuilder setPreviousValue(Function<EnumValueBuilder, EnumValue> 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 ChangeEnumValueOrderChangeBuilder plusNextValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangeEnumValueOrderChangeBuilder withNextValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
fieldName
Name of the updated FieldDefinition.
- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getFieldName
Name of the updated FieldDefinition.
- Returns:
- fieldName
-
build
builds ChangeEnumValueOrderChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeEnumValueOrderChange>
- Returns:
- ChangeEnumValueOrderChange
-
buildUnchecked
builds ChangeEnumValueOrderChange without checking for non-null required values- Returns:
- ChangeEnumValueOrderChange
-
of
factory method for an instance of ChangeEnumValueOrderChangeBuilder- Returns:
- builder
-
of
create builder for ChangeEnumValueOrderChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-