Class ExternalReferenceRequestBody

java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.rest.UpdateRequestBody
org.odpi.openmetadata.accessservices.assetmanager.rest.ExternalReferenceRequestBody

public class ExternalReferenceRequestBody extends UpdateRequestBody
ExternalReferenceRequestBody describes the request body used to create/update external reference properties.
  • Constructor Details

    • ExternalReferenceRequestBody

      public ExternalReferenceRequestBody()
      Default constructor
    • ExternalReferenceRequestBody

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

    • getElementProperties

      public ExternalReferenceProperties getElementProperties()
      Return the properties for the element.
      Returns:
      properties object
    • setElementProperties

      public void setElementProperties(ExternalReferenceProperties elementProperties)
      Set up the properties for the element.
      Parameters:
      elementProperties - properties object
    • getAnchorGUID

      public String getAnchorGUID()
      Set up an optional anchor GUID for the new external reference. The assumption is that the external reference will be linked to this element.
      Returns:
      string guid
    • setAnchorGUID

      public void setAnchorGUID(String anchorGUID)
      Set up an optional anchor GUID for the new external reference. The assumption is that the external reference will be linked to this element.
      Parameters:
      anchorGUID - string guid
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class UpdateRequestBody
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class UpdateRequestBody
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

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