Class UpdateStatusRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateRequestBody
org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateStatusRequestBody
UpdateStatusRequestBody provides a structure for passing the updated status and effectivity dates for a metadata element.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the new status value - or null to leave as is.int
hashCode()
Return hash code for this objectvoid
setNewStatus
(ElementStatus newStatus) Set up the new status value - or null to leave as is.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateRequestBody
getEffectiveTime, getForDuplicateProcessing, getForLineage, setEffectiveTime, setForDuplicateProcessing, setForLineage
-
Constructor Details
-
UpdateStatusRequestBody
public UpdateStatusRequestBody()Default constructor -
UpdateStatusRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getNewStatus
Return the new status value - or null to leave as is.- Returns:
- element status enum value
-
setNewStatus
Set up the new status value - or null to leave as is.- Parameters:
newStatus
- element status enum value
-
toString
JSON-style toString.- Overrides:
toString
in classUpdateRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classUpdateRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classUpdateRequestBody
- Returns:
- int hash code
-