Class RemoveProductChangeBuilder
java.lang.Object
com.commercetools.history.models.change.RemoveProductChangeBuilder
- All Implemented Interfaces:
Builder<RemoveProductChange>
RemoveProductChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RemoveProductChange removeProductChange = RemoveProductChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds RemoveProductChange with checking for non-null required valuesbuilds RemoveProductChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.static RemoveProductChangeBuilder
of()
factory method for an instance of RemoveProductChangeBuilderstatic RemoveProductChangeBuilder
of
(RemoveProductChange template) create builder for RemoveProductChange instancepreviousValue
(Reference previousValue) Value before the change.Value before the change.withPreviousValue
(Function<ReferenceBuilder, Reference> builder) Value before the change.
-
Constructor Details
-
RemoveProductChangeBuilder
public RemoveProductChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public RemoveProductChangeBuilder previousValue(Function<ReferenceBuilder, ReferenceBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds RemoveProductChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<RemoveProductChange>
- Returns:
- RemoveProductChange
-
buildUnchecked
builds RemoveProductChange without checking for non-null required values- Returns:
- RemoveProductChange
-
of
factory method for an instance of RemoveProductChangeBuilder- Returns:
- builder
-
of
create builder for RemoveProductChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-