Class ReviewReferenceBuilder
java.lang.Object
com.commercetools.api.models.review.ReviewReferenceBuilder
- All Implemented Interfaces:
Builder<ReviewReference>
ReviewReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewReference reviewReference = ReviewReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ReviewReference with checking for non-null required valuesbuilds ReviewReference without checking for non-null required valuesgetId()Unique identifier of the referenced Review.getObj()Contains the representation of the expanded Review.Unique identifier of the referenced Review.Contains the representation of the expanded Review.obj(Function<ReviewBuilder, ReviewBuilder> builder) Contains the representation of the expanded Review.static ReviewReferenceBuilderof()factory method for an instance of ReviewReferenceBuilderstatic ReviewReferenceBuilderof(ReviewReference template) create builder for ReviewReference instancewithObj(Function<ReviewBuilder, Review> builder) Contains the representation of the expanded Review.
-
Constructor Details
-
ReviewReferenceBuilder
public ReviewReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Review.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Review.
- Returns:
- id
-
getObj
Contains the representation of the expanded Review. Only present in responses to requests with Reference Expansion for Reviews.
- Returns:
- obj
-
build
builds ReviewReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<ReviewReference>- Returns:
- ReviewReference
-
buildUnchecked
builds ReviewReference without checking for non-null required values- Returns:
- ReviewReference
-
of
factory method for an instance of ReviewReferenceBuilder- Returns:
- builder
-
of
create builder for ReviewReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-