Class RatingRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.RatingRequestBody
-
- All Implemented Interfaces:
Serializable
public class RatingRequestBody extends FeedbackRequestBody
RatingRequestBody provides a structure for passing star rating as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RatingRequestBody()Default constructorRatingRequestBody(RatingRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetReview()Return the attached review (if any)StarRatinggetStarRating()Return the star rating.inthashCode()Return hash code for this objectvoidsetReview(String review)Set up the attached review (if any)voidsetStarRating(StarRating starRating)Set up the star rating.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
-
-
-
Constructor Detail
-
RatingRequestBody
public RatingRequestBody()
Default constructor
-
RatingRequestBody
public RatingRequestBody(RatingRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getStarRating
public StarRating getStarRating()
Return the star rating.- Returns:
- enum
-
setStarRating
public void setStarRating(StarRating starRating)
Set up the star rating.- Parameters:
starRating- enum
-
getReview
public String getReview()
Return the attached review (if any)- Returns:
- text
-
setReview
public void setReview(String review)
Set up the attached review (if any)- Parameters:
review- text
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classFeedbackRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
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
-
-