java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OwnerRequestBody

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

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

      public void setOwnerType(AssetOwnerType ownerType)
      Set up the type of owner.
      Parameters:
      ownerType - string
    • getOwnerId

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

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

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class OCFOMASAPIRequestBody
      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