Class LogRecordRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetConsumerOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.assetconsumer.rest.LogRecordRequestBody
-
- All Implemented Interfaces:
Serializable
public class LogRecordRequestBody extends AssetConsumerOMASAPIRequestBody
LogRecordRequestBody provides a structure for passing a log record as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogRecordRequestBody()Default constructorLogRecordRequestBody(LogRecordRequestBody 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.StringgetConnectionName()Return the name of the connection used to create the connector making the log request.StringgetConnectorInstanceId()Return the instance id of the connector making the log record.StringgetConnectorType()Return the type of connector making the log record.StringgetContextId()Return the function name, or processId of the activity that the caller is performing.StringgetMessage()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.StringtoString()JSON-style toString.
-
-
-
Constructor Detail
-
LogRecordRequestBody
public LogRecordRequestBody()
Default constructor
-
LogRecordRequestBody
public LogRecordRequestBody(LogRecordRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getConnectorInstanceId
public String getConnectorInstanceId()
Return the instance id of the connector making the log record.- Returns:
- unique instance id
-
setConnectorInstanceId
public void setConnectorInstanceId(String connectorInstanceId)
Set up the instance id of the connector making the log record.- Parameters:
connectorInstanceId- unique instance id
-
getConnectionName
public String getConnectionName()
Return the name of the connection used to create the connector making the log request.- Returns:
- connection name
-
setConnectionName
public void setConnectionName(String connectionName)
Set up the name of the connection used to create the connector making the log request.- Parameters:
connectionName- connection name
-
getConnectorType
public String getConnectorType()
Return the type of connector making the log record.- Returns:
- connector type
-
setConnectorType
public void setConnectorType(String connectorType)
Set up the type of connector making the log record.- Parameters:
connectorType- connector type
-
getContextId
public String getContextId()
Return the function name, or processId of the activity that the caller is performing.- Returns:
- context id
-
setContextId
public void setContextId(String contextId)
Set up the function name, or processId of the activity that the caller is performing.- Parameters:
contextId- context id
-
getMessage
public String getMessage()
Return the actual log message.- Returns:
- text
-
setMessage
public void setMessage(String message)
Set up the actual log message.- Parameters:
message- text
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classAssetConsumerOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-