Interface ReviewSetRatingAction
- All Superinterfaces:
ResourceUpdateAction<ReviewUpdateAction>
,ReviewUpdateAction
This update action produces the ReviewRatingSet Message.
Example to create an instance using the builder pattern
ReviewSetRatingAction reviewSetRatingAction = ReviewSetRatingAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ReviewSetRatingAction -
Method Summary
Modifier and TypeMethodDescriptionstatic ReviewSetRatingActionBuilder
builder()
builder factory method for ReviewSetRatingActionstatic ReviewSetRatingActionBuilder
builder
(ReviewSetRatingAction template) create builder for ReviewSetRatingAction instancestatic ReviewSetRatingAction
deepCopy
(ReviewSetRatingAction template) factory method to create a deep copy of ReviewSetRatingActionValue to set.static ReviewSetRatingAction
of()
factory methodstatic ReviewSetRatingAction
of
(ReviewSetRatingAction template) factory method to create a shallow copy ReviewSetRatingActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<ReviewSetRatingAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.review.ReviewUpdateAction
getAction, withReviewUpdateAction
-
Field Details
-
SET_RATING
discriminator value for ReviewSetRatingAction- See Also:
-
-
Method Details
-
getRating
Integer getRating()Value to set. If empty, any existing value will be removed.
- Returns:
- rating
-
setRating
Value to set. If empty, any existing value will be removed.
- Parameters:
rating
- value to be set
-
of
factory method- Returns:
- instance of ReviewSetRatingAction
-
of
factory method to create a shallow copy ReviewSetRatingAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ReviewSetRatingAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReviewSetRatingAction- Returns:
- builder
-
builder
create builder for ReviewSetRatingAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withReviewSetRatingAction
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
-