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