Class ReferenceableRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.ExternalSourceRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.ReferenceableRequestBody
Direct Known Subclasses:
ReferenceableUpdateRequestBody

public class ReferenceableRequestBody extends ExternalSourceRequestBody
ReferenceableRequestBody provides a structure for passing a referenceables' properties as a request body over a REST API.
  • Constructor Details

    • ReferenceableRequestBody

      public ReferenceableRequestBody()
      Default constructor
    • ReferenceableRequestBody

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

    • getProperties

      public ReferenceableProperties getProperties()
      Return the properties for the relationship.
      Returns:
      properties object
    • setProperties

      public void setProperties(ReferenceableProperties properties)
      Set up the properties for the relationship.
      Parameters:
      properties - properties object
    • getAnchorGUID

      public String getAnchorGUID()
      Return an optional anchor GUID to attach the new element to.
      Returns:
      guid
    • setAnchorGUID

      public void setAnchorGUID(String anchorGUID)
      Set up an optional anchor GUID to attach the new element to.
      Parameters:
      anchorGUID - guid
    • getParentGUID

      public String getParentGUID()
      Return an optional anchor GUID to attach the new element to.
      Returns:
      guid
    • setParentGUID

      public void setParentGUID(String parentGUID)
      Set up an optional anchor GUID to attach the new element to.
      Parameters:
      parentGUID - guid
    • toString

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

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