Interface ReviewRatingSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set Rating update action.
Example to create an instance using the builder pattern
ReviewRatingSetMessage reviewRatingSetMessage = ReviewRatingSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.includedInStatistics(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewRatingSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ReviewRatingSetMessagebuilder
(ReviewRatingSetMessage template) create builder for ReviewRatingSetMessage instancecopyDeep()
static ReviewRatingSetMessage
deepCopy
(ReviewRatingSetMessage template) factory method to create a deep copy of ReviewRatingSetMessage@NotNull Boolean
Whether the Review was taken into account in the ratings statistics of the target.@Valid Reference
static ReviewRatingSetMessage
of()
factory methodstatic ReviewRatingSetMessage
of
(ReviewRatingSetMessage template) factory method to create a shallow copy ReviewRatingSetMessagevoid
setIncludedInStatistics
(Boolean includedInStatistics) Whether the Review was taken into account in the ratings statistics of the target.void
setNewRating
(Double newRating) void
setOldRating
(Double oldRating) void
static com.fasterxml.jackson.core.type.TypeReference<ReviewRatingSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
REVIEW_RATING_SET
discriminator value for ReviewRatingSetMessage- 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
- 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
- Parameters:
target
- value to be set
-
of
factory method- Returns:
- instance of ReviewRatingSetMessage
-
of
factory method to create a shallow copy ReviewRatingSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ReviewRatingSetMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
factory method to create a deep copy of ReviewRatingSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewRatingSetMessage- Returns:
- builder
-
builder
create builder for ReviewRatingSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewRatingSetMessage
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
-