Interface ReviewRatingSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Rating update action.
Example to create an instance using the builder pattern
ReviewRatingSetMessagePayload reviewRatingSetMessagePayload = ReviewRatingSetMessagePayload.builder()
.includedInStatistics(true)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewRatingSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewRatingSetMessagePayloadbuilder
(ReviewRatingSetMessagePayload template) create builder for ReviewRatingSetMessagePayload instancedeepCopy
(ReviewRatingSetMessagePayload template) factory method to create a deep copy of ReviewRatingSetMessagePayload@NotNull Boolean
Whether 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.@Valid Reference
Reference to the resource that the Review belongs to.of()
factory methodof
(ReviewRatingSetMessagePayload template) factory method to create a shallow copy ReviewRatingSetMessagePayloadvoid
setIncludedInStatistics
(Boolean includedInStatistics) Whether the Review was taken into account in the ratings statistics of the target.void
setNewRating
(Double newRating) Therating
of the Review after the Set Rating update action.void
setOldRating
(Double oldRating) Therating
of the Review before the Set Rating update action.void
Reference to the resource that the Review belongs to.static com.fasterxml.jackson.core.type.TypeReference<ReviewRatingSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
REVIEW_RATING_SET
discriminator value for ReviewRatingSetMessagePayload- See Also:
-
-
Method Details
-
getOldRating
Double getOldRating()The
rating
of the Review before the Set Rating update action.- Returns:
- oldRating
-
getNewRating
Double 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
-
setOldRating
The
rating
of the Review before the Set Rating update action.- Parameters:
oldRating
- value to be set
-
setNewRating
The
rating
of the Review after the Set Rating update action.- Parameters:
newRating
- value to be set
-
setIncludedInStatistics
Whether the Review was taken into account in the ratings statistics of the target.
- Parameters:
includedInStatistics
- value to be set
-
setTarget
Reference to the resource that the Review belongs to.
- Parameters:
target
- value to be set
-
of
factory method- Returns:
- instance of ReviewRatingSetMessagePayload
-
of
factory method to create a shallow copy ReviewRatingSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ReviewRatingSetMessagePayload deepCopy(@Nullable ReviewRatingSetMessagePayload template) factory method to create a deep copy of ReviewRatingSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewRatingSetMessagePayload- Returns:
- builder
-
builder
create builder for ReviewRatingSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewRatingSetMessagePayload
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-