Class RatingRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.RatingRequestBody
RatingRequestBody provides a structure for passing star rating as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorRatingRequestBody
(RatingRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the attached review (if any)Return the star rating.int
hashCode()
Return hash code for this objectvoid
Set up the attached review (if any)void
setStarRating
(StarRating starRating) Set up the star rating.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
Constructor Details
-
RatingRequestBody
public RatingRequestBody()Default constructor -
RatingRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getStarRating
Return the star rating.- Returns:
- enum
-
setStarRating
Set up the star rating.- Parameters:
starRating
- enum
-
getReview
Return the attached review (if any)- Returns:
- text
-
setReview
Set up the attached review (if any)- Parameters:
review
- text
-
toString
JSON-style toString.- Overrides:
toString
in classFeedbackRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classFeedbackRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classFeedbackRequestBody
- Returns:
- int hash code
-