Class FeedbackRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommentRequestBody,RatingRequestBody,TagRequestBody
public class FeedbackRequestBody extends OCFOMASAPIRequestBody
FeedbackRequestBody provides a base class for passing feedback objects as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FeedbackRequestBody()Default constructorFeedbackRequestBody(FeedbackRequestBody 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.inthashCode()Return hash code for this objectbooleanisPublic()Return whether the feedback is private or notvoidsetPublic(boolean aPrivate)Set up the privacy flag.StringtoString()JSON-style toString.
-
-
-
Constructor Detail
-
FeedbackRequestBody
public FeedbackRequestBody()
Default constructor
-
FeedbackRequestBody
public FeedbackRequestBody(FeedbackRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
isPublic
public boolean isPublic()
Return whether the feedback is private or not- Returns:
- boolean
-
setPublic
public void setPublic(boolean aPrivate)
Set up the privacy flag.- Parameters:
aPrivate- boolean
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classOCFOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-