Class FeedbackRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetConsumerOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.assetconsumer.rest.FeedbackRequestBody
-
- All Implemented Interfaces:
Serializable
public class FeedbackRequestBody extends AssetConsumerOMASAPIRequestBody
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.booleangetIsPublic()Return whether the feedback is private or notinthashCode()Return hash code for this objectvoidsetIsPublic(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
-
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
public String toString()
JSON-style toString.- Overrides:
toStringin classAssetConsumerOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-