Class NewClassificationRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.NewClassificationRequestBody
NewClassificationRequestBody provides a structure for passing the properties for a new classification 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 date/time that this new classification becomes effective in the governance program (null means immediately).Return the date/time when the new classification is no longer effective in the governance program (null means until deleted).Return the properties for the new classification.int
hashCode()
Return hash code for this objectvoid
setEffectiveFrom
(Date effectiveFrom) Set up the date/time that this new classification becomes effective in the governance program (null means immediately).void
setEffectiveTo
(Date effectiveTo) Set up the date/time when the new classification is no longer effective in the governance program (null means until deleted).void
setProperties
(ElementProperties properties) Set up the properties for the new classification.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateRequestBody
getEffectiveTime, getForDuplicateProcessing, getForLineage, setEffectiveTime, setForDuplicateProcessing, setForLineage
Methods inherited from class org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
Constructor Details
-
NewClassificationRequestBody
public NewClassificationRequestBody()Default constructor -
NewClassificationRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getEffectiveFrom
Return the date/time that this new classification becomes effective in the governance program (null means immediately).- Returns:
- date object
-
setEffectiveFrom
Set up the date/time that this new classification becomes effective in the governance program (null means immediately).- Parameters:
effectiveFrom
- date object
-
getEffectiveTo
Return the date/time when the new classification is no longer effective in the governance program (null means until deleted).- Returns:
- date object
-
setEffectiveTo
Set up the date/time when the new classification is no longer effective in the governance program (null means until deleted).- Parameters:
effectiveTo
- date object
-
getProperties
Return the properties for the new classification.- Returns:
- list of properties
-
setProperties
Set up the properties for the new classification.- Parameters:
properties
- list of properties
-
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
-