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.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection
    Return the Connection object.
    Returns the short description of the asset from relationship with Connection.
    int
    Return hash code based on properties.
    void
    setConnection(org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection)
    Set up the Connection object.
    void
    setShortDescription(String shortDescription)
    Set up the short description of the asset from relationship with Connection.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection getConnection()
      Return the Connection object.
      Returns:
      connection
    • setConnection

      public void setConnection(org.odpi.openmetadata.frameworks.connectors.properties.beans.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