java.lang.Object
org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateRequestBody
Direct Known Subclasses:
UpdateEffectivityDatesRequestBody, UpdatePropertiesRequestBody, UpdateStatusRequestBody

public class UpdateRequestBody extends Object
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 Object
      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 Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

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