java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.OwnerRequestBody

public class OwnerRequestBody extends AssetOwnerOMASAPIRequestBody
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

    • getOwnerType

      @Deprecated public AssetOwnerType getOwnerType()
      Deprecated.
      Return the type of owner.
      Returns:
      string
    • setOwnerType

      @Deprecated public void setOwnerType(AssetOwnerType ownerType)
      Deprecated.
      Set up the type of owner.
      Parameters:
      ownerType - string
    • 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 AssetOwnerOMASAPIRequestBody
      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