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