Class RequestTypeRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.rest.RequestTypeRequestBody
RequestTypeRequestBody provides a structure for passing a requestType and requestParameters as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorRequestTypeRequestBody
(RequestTypeRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the parameters used to adapt the governance service's work.Return the request type.int
hashCode()
Return hash code for this objectvoid
setRequestParameters
(Map<String, String> requestParameters) Set up the parameters used to adapt the governance service's work.void
setRequestType
(List<String> requestType) Set up the request type.toString()
JSON-style toString.
-
Constructor Details
-
RequestTypeRequestBody
public RequestTypeRequestBody()Default constructor -
RequestTypeRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRequestType
Return the request type. This maps to a specific governance service running in the governance engine.- Returns:
- string name
-
setRequestType
Set up the request type. This maps to a specific governance service running in the governance engine.- Parameters:
requestType
- list of types
-
getRequestParameters
Return the parameters used to adapt the governance service's work.- Returns:
- map storing the request parameters
-
setRequestParameters
Set up the parameters used to adapt the governance service's work.- Parameters:
requestParameters
- map storing the request parameters
-
toString
JSON-style toString. -
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-