Class TagRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.TagRequestBody
-
- All Implemented Interfaces:
Serializable
public class TagRequestBody extends FeedbackRequestBody
TagRequestBody provides a structure for passing an informal tag as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagRequestBody()Default constructorTagRequestBody(TagRequestBody 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.StringgetTagDescription()Return the description that accompanies the tag.StringgetTagName()Return the name of the tag.inthashCode()Return hash code for this objectvoidsetTagDescription(String tagDescription)Set up the description that accompanies the tag.voidsetTagName(String tagName)Set up the name of the tag.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.FeedbackRequestBody
isPublic, setPublic
-
-
-
-
Constructor Detail
-
TagRequestBody
public TagRequestBody()
Default constructor
-
TagRequestBody
public TagRequestBody(TagRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getTagName
public String getTagName()
Return the name of the tag.- Returns:
- string
-
setTagName
public void setTagName(String tagName)
Set up the name of the tag.- Parameters:
tagName- string
-
getTagDescription
public String getTagDescription()
Return the description that accompanies the tag.- Returns:
- string description
-
setTagDescription
public void setTagDescription(String tagDescription)
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
public String toString()
JSON-style toString.- Overrides:
toStringin classFeedbackRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
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
-
-