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

public class ConnectionRequestBody extends OCFOMASAPIRequestBody
ConnectionRequestBody carries the parameters for created a new asset.
  • Field Details

    • shortDescription

      protected String shortDescription
    • connection

      protected Connection connection
  • Constructor Details

    • ConnectionRequestBody

      public ConnectionRequestBody()
      Default constructor
    • ConnectionRequestBody

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

    • getShortDescription

      public String getShortDescription()
      Returns the short description of the asset from relationship with Connection.
      Returns:
      shortDescription String
    • setShortDescription

      public void setShortDescription(String shortDescription)
      Set up the short description of the asset from relationship with Connection.
      Parameters:
      shortDescription - String text
    • getConnection

      public Connection getConnection()
      Return the Connection object.
      Returns:
      connection
    • setConnection

      public void setConnection(Connection connection)
      Set up the Connection object.
      Parameters:
      connection - - connection object
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OCFOMASAPIRequestBody
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int