Class RequestTypeRequestBody

java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.RequestTypeRequestBody

public class RequestTypeRequestBody extends Object
RequestTypeRequestBody provides a structure for passing a requestType and requestParameters as a request body over a REST API.
  • Constructor Details

    • RequestTypeRequestBody

      public RequestTypeRequestBody()
      Default constructor
    • RequestTypeRequestBody

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

    • getRequestType

      public List<String> getRequestType()
      Return the request type. This maps to a specific governance service running in the governance engine.
      Returns:
      string name
    • setRequestType

      public void setRequestType(List<String> requestType)
      Set up the request type. This maps to a specific governance service running in the governance engine.
      Parameters:
      requestType - list of types
    • getRequestParameters

      public Map<String,String> getRequestParameters()
      Return the parameters used to adapt the governance service's work.
      Returns:
      map storing the request parameters
    • setRequestParameters

      public void setRequestParameters(Map<String,String> requestParameters)
      Set up the parameters used to adapt the governance service's work.
      Parameters:
      requestParameters - map storing the request parameters
    • toString

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