Class UpdateRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateRequestBody
- Direct Known Subclasses:
ArchiveRequestBody
,NewClassificationRequestBody
,NewRelatedElementsRequestBody
,UpdateEffectivityDatesRequestBody
,UpdatePropertiesRequestBody
,UpdateStatusRequestBody
UpdateRequestBody provides a structure for passing the common request parameters for updating metadata elements, relationships or classifications.
-
Constructor Summary
ConstructorDescriptionDefault constructorUpdateRequestBody
(UpdateRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the effective time that this update is to occur in.boolean
Return whether this request is updating an element as part of a deduplication exercise.boolean
Return whether this request is to update lineage memento elements.int
hashCode()
Return hash code for this objectvoid
setEffectiveTime
(Date effectiveTime) Set up the effective time that this update is to occur in.void
setForDuplicateProcessing
(boolean forDuplicateProcessing) Set up whether this request is updating an element as part of a deduplication exercise.void
setForLineage
(boolean forLineage) Set up whether this request is to update lineage memento elements.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworkservices.gaf.rest.MetadataSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
Constructor Details
-
UpdateRequestBody
public UpdateRequestBody()Default constructor -
UpdateRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getForLineage
public boolean getForLineage()Return whether this request is to update lineage memento elements.- Returns:
- flag
-
setForLineage
public void setForLineage(boolean forLineage) Set up whether this request is to update lineage memento elements.- Parameters:
forLineage
- flag
-
getForDuplicateProcessing
public boolean getForDuplicateProcessing()Return whether this request is updating an element as part of a deduplication exercise.- Returns:
- flag
-
setForDuplicateProcessing
public void setForDuplicateProcessing(boolean forDuplicateProcessing) Set up whether this request is updating an element as part of a deduplication exercise.- Parameters:
forDuplicateProcessing
- flag
-
getEffectiveTime
Return the effective time that this update is to occur in.- Returns:
- date/time
-
setEffectiveTime
Set up the effective time that this update is to occur in.- Parameters:
effectiveTime
- date/time
-
toString
JSON-style toString.- Overrides:
toString
in classMetadataSourceRequestBody
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classMetadataSourceRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classMetadataSourceRequestBody
- Returns:
- int hash code
-