Class AddEnumValueChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddEnumValueChangeBuilder
- All Implemented Interfaces:
Builder<AddEnumValueChange>
AddEnumValueChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddEnumValueChange addEnumValueChange = AddEnumValueChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.fieldName("{fieldName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AddEnumValueChange with checking for non-null required valuesbuilds AddEnumValueChange 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 after the change.nextValue
(Function<EnumValueBuilder, EnumValueBuilder> builder) Value after the change.static AddEnumValueChangeBuilder
of()
factory method for an instance of AddEnumValueChangeBuilderstatic AddEnumValueChangeBuilder
of
(AddEnumValueChange template) create builder for AddEnumValueChange instancewithNextValue
(Function<EnumValueBuilder, EnumValue> builder) Value after the change.
-
Constructor Details
-
AddEnumValueChangeBuilder
public AddEnumValueChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
fieldName
Name of the updated FieldDefinition.
- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getFieldName
Name of the updated FieldDefinition.
- Returns:
- fieldName
-
build
builds AddEnumValueChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<AddEnumValueChange>
- Returns:
- AddEnumValueChange
-
buildUnchecked
builds AddEnumValueChange without checking for non-null required values- Returns:
- AddEnumValueChange
-
of
factory method for an instance of AddEnumValueChangeBuilder- Returns:
- builder
-
of
create builder for AddEnumValueChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-