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

public class UpdateRequestBody extends MetadataSourceRequestBody
UpdateRequestBody provides a structure for passing the common request parameters for updating metadata elements, relationships or classifications.
  • Constructor Details

    • UpdateRequestBody

      public UpdateRequestBody()
      Default constructor
    • UpdateRequestBody

      public UpdateRequestBody(UpdateRequestBody template)
      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

      public Date getEffectiveTime()
      Return the effective time that this update is to occur in.
      Returns:
      date/time
    • setEffectiveTime

      public void setEffectiveTime(Date effectiveTime)
      Set up the effective time that this update is to occur in.
      Parameters:
      effectiveTime - date/time
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class MetadataSourceRequestBody
      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:
      equals in class MetadataSourceRequestBody
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class MetadataSourceRequestBody
      Returns:
      int hash code