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
ConstructorsConstructorDescriptionDefault constructorRatingRequestBody(RatingRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the attached review (if any)org.odpi.openmetadata.frameworks.openmetadata.enums.StarRatingReturn the star rating.inthashCode()Return hash code for this objectvoidSet up the attached review (if any)voidsetStarRating(org.odpi.openmetadata.frameworks.openmetadata.enums.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
public org.odpi.openmetadata.frameworks.openmetadata.enums.StarRating getStarRating()Return the star rating.- Returns:
- enum
-
setStarRating
public void setStarRating(org.odpi.openmetadata.frameworks.openmetadata.enums.StarRating starRating) 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:
toStringin classFeedbackRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classFeedbackRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classFeedbackRequestBody- Returns:
- int hash code
-