Class TagRequestBody
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.TagRequestBody
TagRequestBody provides a structure for passing an informal tag as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorTagRequestBody
(TagRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the description that accompanies the tag.Return the name of the tag.int
hashCode()
Return hash code for this objectvoid
setTagDescription
(String tagDescription) Set up the description that accompanies the tag.void
setTagName
(String tagName) Set up the name of the tag.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
Constructor Details
-
TagRequestBody
public TagRequestBody()Default constructor -
TagRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getTagName
Return the name of the tag.- Returns:
- string
-
setTagName
Set up the name of the tag.- Parameters:
tagName
- string
-
getTagDescription
Return the description that accompanies the tag.- Returns:
- string description
-
setTagDescription
Set up the description that accompanies the tag.- Parameters:
tagDescription
- String (optional) description of the tag. Setting a description, particularly in a public tag makes the tag more valuable to other users and can act as an embryonic glossary term.
-
toString
JSON-style toString.- Overrides:
toString
in classFeedbackRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classFeedbackRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classFeedbackRequestBody
- Returns:
- int hash code
-