Class UpdatePropertiesRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.UpdatePropertiesRequestBody
UpdatePropertiesRequestBody provides a structure for passing the properties for updating metadata elements, relationships or classifications.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the properties for the update.boolean
Return the flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.int
hashCode()
Return hash code for this objectvoid
setProperties
(ElementProperties properties) Set up the properties for the update.void
setReplaceProperties
(boolean replaceProperties) Set up the flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.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
-
UpdatePropertiesRequestBody
public UpdatePropertiesRequestBody()Default constructor -
UpdatePropertiesRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getReplaceProperties
public boolean getReplaceProperties()Return the flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.- Returns:
- boolean flag
-
setReplaceProperties
public void setReplaceProperties(boolean replaceProperties) Set up the flag to indicate whether to completely replace the existing properties with the new properties, or just update the individual properties specified on the request.- Parameters:
replaceProperties
- boolean flag
-
getProperties
Return the properties for the update.- Returns:
- list of properties
-
setProperties
Set up the properties for the update.- 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
-