Class ReviewLabelBuilder
java.lang.Object
com.commercetools.history.models.label.ReviewLabelBuilder
- All Implemented Interfaces:
Builder<ReviewLabel>
ReviewLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewLabel reviewLabel = ReviewLabel.builder()
.key("{key}")
.title("{title}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewLabel with checking for non-null required valuesbuilds ReviewLabel without checking for non-null required valuesgetKey()
User-defined unique identifier of the Review.getTitle()
Title of the Review.User-defined unique identifier of the Review.static ReviewLabelBuilder
of()
factory method for an instance of ReviewLabelBuilderstatic ReviewLabelBuilder
of
(ReviewLabel template) create builder for ReviewLabel instanceTitle of the Review.
-
Constructor Details
-
ReviewLabelBuilder
public ReviewLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Review.
- Parameters:
key
- value to be set- Returns:
- Builder
-
title
Title of the Review.
- Parameters:
title
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Review.
- Returns:
- key
-
getTitle
Title of the Review.
- Returns:
- title
-
build
builds ReviewLabel with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewLabel>
- Returns:
- ReviewLabel
-
buildUnchecked
builds ReviewLabel without checking for non-null required values- Returns:
- ReviewLabel
-
of
factory method for an instance of ReviewLabelBuilder- Returns:
- builder
-
of
create builder for ReviewLabel instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-