Class LogRecordRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.LogRecordRequestBody
LogRecordRequestBody provides a structure for passing a log record as a request body over a REST API.
-
Constructor Summary
ConstructorDescriptionDefault constructorLogRecordRequestBody
(LogRecordRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals 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.int
hashCode()
Return hash code for this objectvoid
setConnectionName
(String connectionName) Set up the name of the connection used to create the connector making the log request.void
setConnectorInstanceId
(String connectorInstanceId) Set up the instance id of the connector making the log record.void
setConnectorType
(String connectorType) Set up the type of connector making the log record.void
setContextId
(String contextId) Set up the function name, or processId of the activity that the caller is performing.void
setMessage
(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. -
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-