Class OCFConnectionRequestBody

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

public class OCFConnectionRequestBody extends Object
OCFConnectionRequestBody carries the parameters for created a new asset.
  • Field Details

    • shortDescription

      protected String shortDescription
    • connection

      protected Connection connection
  • Constructor Details

    • OCFConnectionRequestBody

      public OCFConnectionRequestBody()
      Default constructor
    • OCFConnectionRequestBody

      public OCFConnectionRequestBody(OCFConnectionRequestBody 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 Object
      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