Class GovernanceServiceRegistrationRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceServiceRegistrationRequestBody
-
- All Implemented Interfaces:
Serializable
public class GovernanceServiceRegistrationRequestBody extends Object implements Serializable
GovernanceServiceRegistrationRequestBody provides a structure for passing details of a governance service that is to be registered with a governance engine.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GovernanceServiceRegistrationRequestBody()Default constructorGovernanceServiceRegistrationRequestBody(GovernanceServiceRegistrationRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetGovernanceServiceGUID()Return the unique identifier of the governance service.Map<String,String>getRequestParameters()Return the list of analysis parameters that are passed to the governance service (via the governance context).StringgetRequestType()Return the request type used to call the governance service via this governance engine.StringgetServiceRequestType()Return the request type that this governance service supports.inthashCode()Return hash code for this objectvoidsetGovernanceServiceGUID(String governanceServiceGUID)Set up the unique identifier of the governance service.voidsetRequestParameters(Map<String,String> requestParameters)Set up the list of analysis parameters that are passed to the governance service (via the governance context).voidsetRequestType(String requestType)Set up the request type used to call the governance service via this governance engine.voidsetServiceRequestType(String requestType)Set up the request type that this governance service supports.StringtoString()JSON-style toString.
-
-
-
Constructor Detail
-
GovernanceServiceRegistrationRequestBody
public GovernanceServiceRegistrationRequestBody()
Default constructor
-
GovernanceServiceRegistrationRequestBody
public GovernanceServiceRegistrationRequestBody(GovernanceServiceRegistrationRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getGovernanceServiceGUID
public String getGovernanceServiceGUID()
Return the unique identifier of the governance service.- Returns:
- guid
-
setGovernanceServiceGUID
public void setGovernanceServiceGUID(String governanceServiceGUID)
Set up the unique identifier of the governance service.- Parameters:
governanceServiceGUID- guid
-
getRequestType
public String getRequestType()
Return the request type used to call the governance service via this governance engine. If this request type is not supported by the governance service, map it to the request type it does understand using setServiceRequestType.- Returns:
- name of the request type
-
setRequestType
public void setRequestType(String requestType)
Set up the request type used to call the governance service via this governance engine. If this request type is not supported by the governance service, map it to the request type it does understand using setServiceRequestType.- Parameters:
requestType- name of the request type passed to the governance service
-
getServiceRequestType
public String getServiceRequestType()
Return the request type that this governance service supports. The requestType from the caller is mapped to this value if not null. This enables meaningful request types to be set up in a governance engine that then maps to a request type that the governance service understands.- Returns:
- name of the request type passed to the governance service (request type used if null)
-
setServiceRequestType
public void setServiceRequestType(String requestType)
Set up the request type that this governance service supports. The requestType from the caller is mapped to this value if not null. This enables meaningful request types to be set up in a governance engine that then maps to a request type that the governance service understands.- Parameters:
requestType- name of the request type passed to the governance service (request type used if null)
-
getRequestParameters
public Map<String,String> getRequestParameters()
Return the list of analysis parameters that are passed to the governance service (via the governance context). These values can be overridden on the actual governance request.- Returns:
- map of parameter name to parameter value
-
setRequestParameters
public void setRequestParameters(Map<String,String> requestParameters)
Set up the list of analysis parameters that are passed to the governance service (via the governance context). These values can be overridden on the actual governance request.- Parameters:
requestParameters- map of parameter name to parameter value
-
toString
public String toString()
JSON-style toString.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-