Class ChangeLocalizedEnumValueOrderChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ChangeLocalizedEnumValueOrderChangeBuilder
- All Implemented Interfaces:
Builder<ChangeLocalizedEnumValueOrderChange>
public class ChangeLocalizedEnumValueOrderChangeBuilder
extends Object
implements Builder<ChangeLocalizedEnumValueOrderChange>
ChangeLocalizedEnumValueOrderChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeLocalizedEnumValueOrderChange changeLocalizedEnumValueOrderChange = ChangeLocalizedEnumValueOrderChange.builder()
.change("{change}")
.plusPreviousValue(previousValueBuilder -> previousValueBuilder)
.plusNextValue(nextValueBuilder -> nextValueBuilder)
.fieldName("{fieldName}")
.attributeName("{attributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue after the change.Value before the change.attributeName
(String attributeName) Name of the updated AttributeDefinition; only present on changes to Product Types.build()
builds ChangeLocalizedEnumValueOrderChange with checking for non-null required valuesbuilds ChangeLocalizedEnumValueOrderChange without checking for non-null required valuesset the value to the changeName of the updated FieldDefinition; only present on changes to Types.Name of the updated AttributeDefinition; only present on changes to Product Types.value of change}Name of the updated FieldDefinition; only present on changes to Types.Value after the change.Value before the change.nextValue
(LocalizedEnumValue... nextValue) Value after the change.nextValue
(List<LocalizedEnumValue> nextValue) Value after the change.of()
factory method for an instance of ChangeLocalizedEnumValueOrderChangeBuilderof
(ChangeLocalizedEnumValueOrderChange template) create builder for ChangeLocalizedEnumValueOrderChange instanceplusNextValue
(LocalizedEnumValue... nextValue) Value after the change.Value after the change.plusPreviousValue
(LocalizedEnumValue... previousValue) Value before the change.Value before the change.previousValue
(LocalizedEnumValue... previousValue) Value before the change.previousValue
(List<LocalizedEnumValue> previousValue) Value before the change.Value after the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
ChangeLocalizedEnumValueOrderChangeBuilder
public ChangeLocalizedEnumValueOrderChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public ChangeLocalizedEnumValueOrderChangeBuilder previousValue(LocalizedEnumValue... previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
previousValue
public ChangeLocalizedEnumValueOrderChangeBuilder previousValue(List<LocalizedEnumValue> previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public ChangeLocalizedEnumValueOrderChangeBuilder plusPreviousValue(LocalizedEnumValue... previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
plusPreviousValue
public ChangeLocalizedEnumValueOrderChangeBuilder plusPreviousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ChangeLocalizedEnumValueOrderChangeBuilder withPreviousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
addPreviousValue
public ChangeLocalizedEnumValueOrderChangeBuilder addPreviousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
setPreviousValue
public ChangeLocalizedEnumValueOrderChangeBuilder setPreviousValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValue> 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 ChangeLocalizedEnumValueOrderChangeBuilder plusNextValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ChangeLocalizedEnumValueOrderChangeBuilder withNextValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
addNextValue
public ChangeLocalizedEnumValueOrderChangeBuilder addNextValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
setNextValue
public ChangeLocalizedEnumValueOrderChangeBuilder setNextValue(Function<LocalizedEnumValueBuilder, LocalizedEnumValue> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
fieldName
Name of the updated FieldDefinition; only present on changes to Types.
- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
attributeName
Name of the updated AttributeDefinition; only present on changes to Product Types.
- 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
-
getFieldName
Name of the updated FieldDefinition; only present on changes to Types.
- Returns:
- fieldName
-
getAttributeName
Name of the updated AttributeDefinition; only present on changes to Product Types.
- Returns:
- attributeName
-
build
builds ChangeLocalizedEnumValueOrderChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeLocalizedEnumValueOrderChange>
- Returns:
- ChangeLocalizedEnumValueOrderChange
-
buildUnchecked
builds ChangeLocalizedEnumValueOrderChange without checking for non-null required values- Returns:
- ChangeLocalizedEnumValueOrderChange
-
of
factory method for an instance of ChangeLocalizedEnumValueOrderChangeBuilder- Returns:
- builder
-
of
public static ChangeLocalizedEnumValueOrderChangeBuilder of(ChangeLocalizedEnumValueOrderChange template) create builder for ChangeLocalizedEnumValueOrderChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-