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 SummaryConstructors
- 
Method SummaryModifier 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.includedInStatistics(Boolean includedInStatistics) Whether the Review was taken into account in the ratings statistics of the target.of()factory method for an instance of ReviewRatingSetMessagePayloadBuilderof(ReviewRatingSetMessagePayload template) create builder for ReviewRatingSetMessagePayload instancetarget(Function<ReferenceBuilder, Builder<? extends Reference>> builder) 
- 
Constructor Details- 
ReviewRatingSetMessagePayloadBuilderpublic ReviewRatingSetMessagePayloadBuilder()
 
- 
- 
Method Details- 
oldRatingThe ratingof the Review before the Set Rating update action.- Parameters:
- oldRating- value to be set
- Returns:
- Builder
 
- 
newRatingThe ratingof the Review after the Set Rating update action.- Parameters:
- newRating- value to be set
- Returns:
- Builder
 
- 
includedInStatisticsWhether the Review was taken into account in the ratings statistics of the target. - Parameters:
- includedInStatistics- value to be set
- Returns:
- Builder
 
- 
target- Parameters:
- target- value to be set
- Returns:
- Builder
 
- 
targetpublic ReviewRatingSetMessagePayloadBuilder target(Function<ReferenceBuilder, Builder<? extends Reference>> builder) - Parameters:
- builder- function to build the target value
- Returns:
- Builder
 
- 
getOldRatingThe ratingof the Review before the Set Rating update action.- Returns:
- oldRating
 
- 
getNewRatingThe ratingof the Review after the Set Rating update action.- Returns:
- newRating
 
- 
getIncludedInStatisticsWhether the Review was taken into account in the ratings statistics of the target. - Returns:
- includedInStatistics
 
- 
getTarget- Returns:
- target
 
- 
buildbuilds ReviewRatingSetMessagePayload with checking for non-null required values- Specified by:
- buildin interface- Builder<ReviewRatingSetMessagePayload>
- Returns:
- ReviewRatingSetMessagePayload
 
- 
buildUncheckedbuilds ReviewRatingSetMessagePayload without checking for non-null required values- Returns:
- ReviewRatingSetMessagePayload
 
- 
offactory method for an instance of ReviewRatingSetMessagePayloadBuilder- Returns:
- builder
 
- 
ofcreate builder for ReviewRatingSetMessagePayload instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
 
-