Class ReviewRatingSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ReviewRatingSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ReviewRatingSetMessagePayload>
public class ReviewRatingSetMessagePayloadBuilder
extends Object
implements Builder<ReviewRatingSetMessagePayload>
ReviewRatingSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReviewRatingSetMessagePayload reviewRatingSetMessagePayload = ReviewRatingSetMessagePayload.builder()
.includedInStatistics(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ReviewRatingSetMessagePayload with checking for non-null required valuesbuilds ReviewRatingSetMessagePayload without checking for non-null required valuesWhether the Review was taken into account in the ratings statistics of the target.Therating
of the Review after the Set Rating update action.Therating
of the Review before the Set Rating update action.Reference to the resource that the Review belongs to.includedInStatistics
(Boolean includedInStatistics) Whether the Review was taken into account in the ratings statistics of the target.Therating
of the Review after the Set Rating update action.of()
factory method for an instance of ReviewRatingSetMessagePayloadBuilderof
(ReviewRatingSetMessagePayload template) create builder for ReviewRatingSetMessagePayload instanceTherating
of the Review before the Set Rating update action.Reference to the resource that the Review belongs to.target
(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that the Review belongs to.
-
Constructor Details
-
ReviewRatingSetMessagePayloadBuilder
public ReviewRatingSetMessagePayloadBuilder()
-
-
Method Details
-
oldRating
The
rating
of the Review before the Set Rating update action.- Parameters:
oldRating
- value to be set- Returns:
- Builder
-
newRating
The
rating
of the Review after the Set Rating update action.- Parameters:
newRating
- value to be set- Returns:
- Builder
-
includedInStatistics
Whether the Review was taken into account in the ratings statistics of the target.
- Parameters:
includedInStatistics
- value to be set- Returns:
- Builder
-
target
Reference to the resource that the Review belongs to.
- Parameters:
target
- value to be set- Returns:
- Builder
-
target
public ReviewRatingSetMessagePayloadBuilder target(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that the Review belongs to.
- Parameters:
builder
- function to build the target value- Returns:
- Builder
-
getOldRating
The
rating
of the Review before the Set Rating update action.- Returns:
- oldRating
-
getNewRating
The
rating
of the Review after the Set Rating update action.- Returns:
- newRating
-
getIncludedInStatistics
Whether the Review was taken into account in the ratings statistics of the target.
- Returns:
- includedInStatistics
-
getTarget
Reference to the resource that the Review belongs to.
- Returns:
- target
-
build
builds ReviewRatingSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ReviewRatingSetMessagePayload>
- Returns:
- ReviewRatingSetMessagePayload
-
buildUnchecked
builds ReviewRatingSetMessagePayload without checking for non-null required values- Returns:
- ReviewRatingSetMessagePayload
-
of
factory method for an instance of ReviewRatingSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ReviewRatingSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-