Class CommentRequestBody
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.CommentRequestBody
- All Implemented Interfaces:
Serializable
CommentRequestBody provides a structure for passing a comment as a request body over a REST API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCommentRequestBody(CommentRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the comment content.org.odpi.openmetadata.frameworks.connectors.properties.beans.CommentTypeReturn the type of comment.inthashCode()Return hash code for this objectvoidsetCommentText(String commentText) Set up the comment content.voidsetCommentType(org.odpi.openmetadata.frameworks.connectors.properties.beans.CommentType commentType) Set up the type of comment.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
Constructor Details
-
CommentRequestBody
public CommentRequestBody()Default constructor -
CommentRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getCommentType
public org.odpi.openmetadata.frameworks.connectors.properties.beans.CommentType getCommentType()Return the type of comment.- Returns:
- string
-
setCommentType
public void setCommentType(org.odpi.openmetadata.frameworks.connectors.properties.beans.CommentType commentType) Set up the type of comment.- Parameters:
commentType- string
-
getCommentText
Return the comment content.- Returns:
- string description
-
setCommentText
Set up the comment content.- Parameters:
commentText- 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
-