Class LogRecordRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetConsumerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.LogRecordRequestBody
- All Implemented Interfaces:
Serializable
LogRecordRequestBody provides a structure for passing a log record as a request body over a REST API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorLogRecordRequestBody(LogRecordRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the name of the connection used to create the connector making the log request.Return the instance id of the connector making the log record.Return the type of connector making the log record.Return the function name, or processId of the activity that the caller is performing.Return the actual log message.inthashCode()Return hash code for this objectvoidsetConnectionName(String connectionName) Set up the name of the connection used to create the connector making the log request.voidsetConnectorInstanceId(String connectorInstanceId) Set up the instance id of the connector making the log record.voidsetConnectorType(String connectorType) Set up the type of connector making the log record.voidsetContextId(String contextId) Set up the function name, or processId of the activity that the caller is performing.voidsetMessage(String message) Set up the actual log message.toString()JSON-style toString.
-
Constructor Details
-
LogRecordRequestBody
public LogRecordRequestBody()Default constructor -
LogRecordRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getConnectorInstanceId
Return the instance id of the connector making the log record.- Returns:
- unique instance id
-
setConnectorInstanceId
Set up the instance id of the connector making the log record.- Parameters:
connectorInstanceId- unique instance id
-
getConnectionName
Return the name of the connection used to create the connector making the log request.- Returns:
- connection name
-
setConnectionName
Set up the name of the connection used to create the connector making the log request.- Parameters:
connectionName- connection name
-
getConnectorType
Return the type of connector making the log record.- Returns:
- connector type
-
setConnectorType
Set up the type of connector making the log record.- Parameters:
connectorType- connector type
-
getContextId
Return the function name, or processId of the activity that the caller is performing.- Returns:
- context id
-
setContextId
Set up the function name, or processId of the activity that the caller is performing.- Parameters:
contextId- context id
-
getMessage
Return the actual log message.- Returns:
- text
-
setMessage
Set up the actual log message.- Parameters:
message- text
-
toString
JSON-style toString.- Overrides:
toStringin classAssetConsumerOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-