Class PublishChangeBuilder
java.lang.Object
com.commercetools.history.models.change.PublishChangeBuilder
- All Implemented Interfaces:
Builder<PublishChange>
PublishChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PublishChange publishChange = PublishChange.builder()
.change("{change}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds PublishChange with checking for non-null required valuesbuilds PublishChange without checking for non-null required valuesset the value to the changevalue of change}static PublishChangeBuilderof()factory method for an instance of PublishChangeBuilderstatic PublishChangeBuilderof(PublishChange template) create builder for PublishChange instance
-
Constructor Details
-
PublishChangeBuilder
public PublishChangeBuilder()
-
-
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 PublishChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<PublishChange>- Returns:
- PublishChange
-
buildUnchecked
builds PublishChange without checking for non-null required values- Returns:
- PublishChange
-
of
factory method for an instance of PublishChangeBuilder- Returns:
- builder
-
of
create builder for PublishChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-