Class UpdateStatusRequestBody


public class UpdateStatusRequestBody extends UpdateRequestBody
UpdateStatusRequestBody provides a structure for passing the updated status and effectivity dates for a metadata element.
  • Constructor Details

    • UpdateStatusRequestBody

      public UpdateStatusRequestBody()
      Default constructor
    • UpdateStatusRequestBody

      public UpdateStatusRequestBody(UpdateStatusRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getNewStatus

      public ElementStatus getNewStatus()
      Return the new status value - or null to leave as is.
      Returns:
      element status enum value
    • setNewStatus

      public void setNewStatus(ElementStatus newStatus)
      Set up the new status value - or null to leave as is.
      Parameters:
      newStatus - element status enum value
    • toString

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

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