Class OwnerRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.OwnerRequestBody

public class OwnerRequestBody extends Object
OwnerRequestBody provides a structure for passing information about an asset owner as a request body over a REST API.
  • Constructor Details

    • OwnerRequestBody

      public OwnerRequestBody()
      Default constructor
    • OwnerRequestBody

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

    • getOwnerId

      public String getOwnerId()
      Return the owner identifier.
      Returns:
      string identifier
    • setOwnerId

      public void setOwnerId(String ownerId)
      Set up the owner id.
      Parameters:
      ownerId - identifier.
    • getOwnerTypeName

      public String getOwnerTypeName()
      Return the type of element used to represent the owner.
      Returns:
      string type name
    • setOwnerTypeName

      public void setOwnerTypeName(String ownerTypeName)
      Set up the type of element used to represent the owner.
      Parameters:
      ownerTypeName - string type name
    • getOwnerPropertyName

      public String getOwnerPropertyName()
      Return the property name used to identify the owner. For example guid or qualifiedName.
      Returns:
      string property name
    • setOwnerPropertyName

      public void setOwnerPropertyName(String ownerPropertyName)
      Set up the property name used to identify the owner. For example guid or qualifiedName.
      Parameters:
      ownerPropertyName - string property name
    • 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