Class ReviewResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.review.ReviewResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<ReviewResourceIdentifier>
public class ReviewResourceIdentifierBuilder
extends Object
implements Builder<ReviewResourceIdentifier>
ReviewResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewResourceIdentifier reviewResourceIdentifier = ReviewResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewResourceIdentifier with checking for non-null required valuesbuilds ReviewResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced Review.getKey()
User-defined unique identifier of the referenced Review.Unique identifier of the referenced Review.User-defined unique identifier of the referenced Review.of()
factory method for an instance of ReviewResourceIdentifierBuilderof
(ReviewResourceIdentifier template) create builder for ReviewResourceIdentifier instance
-
Constructor Details
-
ReviewResourceIdentifierBuilder
public ReviewResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Review. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced Review. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Review. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced Review. Required if
id
is absent.- Returns:
- key
-
build
builds ReviewResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewResourceIdentifier>
- Returns:
- ReviewResourceIdentifier
-
buildUnchecked
builds ReviewResourceIdentifier without checking for non-null required values- Returns:
- ReviewResourceIdentifier
-
of
factory method for an instance of ReviewResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for ReviewResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-