Class AddPlainEnumValueChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddPlainEnumValueChangeBuilder
- All Implemented Interfaces:
Builder<AddPlainEnumValueChange>
public class AddPlainEnumValueChangeBuilder
extends Object
implements Builder<AddPlainEnumValueChange>
AddPlainEnumValueChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddPlainEnumValueChange addPlainEnumValueChange = AddPlainEnumValueChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.attributeName("{attributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeName
(String attributeName) Name of the updated AttributeDefinition.build()
builds AddPlainEnumValueChange with checking for non-null required valuesbuilds AddPlainEnumValueChange without checking for non-null required valuesset the value to the changeName of the updated AttributeDefinition.value of change}Value after the change.nextValue
(AttributePlainEnumValue nextValue) Value after the change.Value after the change.of()
factory method for an instance of AddPlainEnumValueChangeBuilderof
(AddPlainEnumValueChange template) create builder for AddPlainEnumValueChange instanceValue after the change.
-
Constructor Details
-
AddPlainEnumValueChangeBuilder
public AddPlainEnumValueChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
public AddPlainEnumValueChangeBuilder nextValue(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public AddPlainEnumValueChangeBuilder withNextValue(Function<AttributePlainEnumValueBuilder, AttributePlainEnumValue> builder) 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
-
attributeName
Name of the updated AttributeDefinition.
- Parameters:
attributeName
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getAttributeName
Name of the updated AttributeDefinition.
- Returns:
- attributeName
-
build
builds AddPlainEnumValueChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<AddPlainEnumValueChange>
- Returns:
- AddPlainEnumValueChange
-
buildUnchecked
builds AddPlainEnumValueChange without checking for non-null required values- Returns:
- AddPlainEnumValueChange
-
of
factory method for an instance of AddPlainEnumValueChangeBuilder- Returns:
- builder
-
of
create builder for AddPlainEnumValueChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-