Class ChangePlainEnumValueOrderChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangePlainEnumValueOrderChangeBuilder
- All Implemented Interfaces:
Builder<ChangePlainEnumValueOrderChange>
public class ChangePlainEnumValueOrderChangeBuilder
extends Object
implements Builder<ChangePlainEnumValueOrderChange>
ChangePlainEnumValueOrderChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangePlainEnumValueOrderChange changePlainEnumValueOrderChange = ChangePlainEnumValueOrderChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.attributeName("{attributeName}")
.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.attributeName
(String attributeName) Name of the updated AttributeDefinition.build()
builds ChangePlainEnumValueOrderChange with checking for non-null required valuesbuilds ChangePlainEnumValueOrderChange without checking for non-null required valuesset the value to the changeName of the updated AttributeDefinition.value of change}Value after the change.Value before the change.Value after the change.Value after the change.of()
factory method for an instance of ChangePlainEnumValueOrderChangeBuilderof
(ChangePlainEnumValueOrderChange template) create builder for ChangePlainEnumValueOrderChange 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
-
ChangePlainEnumValueOrderChangeBuilder
public ChangePlainEnumValueOrderChangeBuilder()
-
-
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 ChangePlainEnumValueOrderChangeBuilder plusPreviousValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangePlainEnumValueOrderChangeBuilder withPreviousValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public ChangePlainEnumValueOrderChangeBuilder addPreviousValue(Function<EnumValueBuilder, EnumValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public ChangePlainEnumValueOrderChangeBuilder 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 ChangePlainEnumValueOrderChangeBuilder plusNextValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangePlainEnumValueOrderChangeBuilder withNextValue(Function<EnumValueBuilder, EnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public ChangePlainEnumValueOrderChangeBuilder addNextValue(Function<EnumValueBuilder, EnumValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public ChangePlainEnumValueOrderChangeBuilder setNextValue(Function<EnumValueBuilder, EnumValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
attributeName
Name of the updated AttributeDefinition.
- Parameters:
attributeName
- 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
-
getAttributeName
Name of the updated AttributeDefinition.
- Returns:
- attributeName
-
build
builds ChangePlainEnumValueOrderChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangePlainEnumValueOrderChange>
- Returns:
- ChangePlainEnumValueOrderChange
-
buildUnchecked
builds ChangePlainEnumValueOrderChange without checking for non-null required values- Returns:
- ChangePlainEnumValueOrderChange
-
of
factory method for an instance of ChangePlainEnumValueOrderChangeBuilder- Returns:
- builder
-
of
create builder for ChangePlainEnumValueOrderChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-