Class ReviewCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ReviewCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ReviewCreatedMessagePayload>
public class ReviewCreatedMessagePayloadBuilder
extends Object
implements Builder<ReviewCreatedMessagePayload>
ReviewCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewCreatedMessagePayload reviewCreatedMessagePayload = ReviewCreatedMessagePayload.builder()
.review(reviewBuilder -> reviewBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewCreatedMessagePayload with checking for non-null required valuesbuilds ReviewCreatedMessagePayload without checking for non-null required valuesReview that was created.of()
factory method for an instance of ReviewCreatedMessagePayloadBuilderof
(ReviewCreatedMessagePayload template) create builder for ReviewCreatedMessagePayload instanceReview that was created.review
(Function<ReviewBuilder, ReviewBuilder> builder) Review that was created.withReview
(Function<ReviewBuilder, Review> builder) Review that was created.
-
Constructor Details
-
ReviewCreatedMessagePayloadBuilder
public ReviewCreatedMessagePayloadBuilder()
-
-
Method Details
-
review
Review that was created.
- Parameters:
builder
- function to build the review value- Returns:
- Builder
-
withReview
Review that was created.
- Parameters:
builder
- function to build the review value- Returns:
- Builder
-
review
Review that was created.
- Parameters:
review
- value to be set- Returns:
- Builder
-
getReview
Review that was created.
- Returns:
- review
-
build
builds ReviewCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewCreatedMessagePayload>
- Returns:
- ReviewCreatedMessagePayload
-
buildUnchecked
builds ReviewCreatedMessagePayload without checking for non-null required values- Returns:
- ReviewCreatedMessagePayload
-
of
factory method for an instance of ReviewCreatedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ReviewCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-