Class FeedbackRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FeedbackRequestBody
- Direct Known Subclasses:
CommentRequestBody
,RatingRequestBody
FeedbackRequestBody provides a base class for passing feedback objects as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorFeedbackRequestBody
(FeedbackRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.boolean
Return whether the feedback is private or notint
hashCode()
Return hash code for this objectvoid
setIsPublic
(boolean aPrivate) Set up the privacy flag.toString()
JSON-style toString.
-
Constructor Details
-
FeedbackRequestBody
public FeedbackRequestBody()Default constructor -
FeedbackRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getIsPublic
public boolean getIsPublic()Return whether the feedback is private or not- Returns:
- boolean
-
setIsPublic
public void setIsPublic(boolean aPrivate) Set up the privacy flag.- Parameters:
aPrivate
- boolean
-
toString
JSON-style toString. -
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-