Class UnpublishChangeBuilder
java.lang.Object
com.commercetools.history.models.change.UnpublishChangeBuilder
- All Implemented Interfaces:
Builder<UnpublishChange>
UnpublishChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UnpublishChange unpublishChange = UnpublishChange.builder()
.change("{change}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds UnpublishChange with checking for non-null required valuesbuilds UnpublishChange without checking for non-null required valuesset the value to the changevalue of change}static UnpublishChangeBuilder
of()
factory method for an instance of UnpublishChangeBuilderstatic UnpublishChangeBuilder
of
(UnpublishChange template) create builder for UnpublishChange instance
-
Constructor Details
-
UnpublishChangeBuilder
public UnpublishChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
build
builds UnpublishChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<UnpublishChange>
- Returns:
- UnpublishChange
-
buildUnchecked
builds UnpublishChange without checking for non-null required values- Returns:
- UnpublishChange
-
of
factory method for an instance of UnpublishChangeBuilder- Returns:
- builder
-
of
create builder for UnpublishChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-