Class AddPropertyChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddPropertyChangeBuilder
- All Implemented Interfaces:
Builder<AddPropertyChange>
AddPropertyChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddPropertyChange addPropertyChange = AddPropertyChange.builder()
.change("{change}")
.path("{path}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AddPropertyChange with checking for non-null required valuesbuilds AddPropertyChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.getPath()
Path to the new property that was added.Value after the change.static AddPropertyChangeBuilder
of()
factory method for an instance of AddPropertyChangeBuilderstatic AddPropertyChangeBuilder
of
(AddPropertyChange template) create builder for AddPropertyChange instancePath to the new property that was added.
-
Constructor Details
-
AddPropertyChangeBuilder
public AddPropertyChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
path
Path to the new property that was added.
- Parameters:
path
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
getPath
Path to the new property that was added.
- Returns:
- path
-
build
builds AddPropertyChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<AddPropertyChange>
- Returns:
- AddPropertyChange
-
buildUnchecked
builds AddPropertyChange without checking for non-null required values- Returns:
- AddPropertyChange
-
of
factory method for an instance of AddPropertyChangeBuilder- Returns:
- builder
-
of
create builder for AddPropertyChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-