@Generated(value="OracleSDKGenerator", comments="API Version: 20180917") public final class LogEntry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Log entry for an operation resulting from a job’s execution.
Note: Objects should always be created or deserialized using the LogEntry.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the LogEntry.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
LogEntry.Builder |
static class |
LogEntry.Level
Specifies the severity level of the log entry.
|
static class |
LogEntry.Type
Specifies the log type for the log entry.
|
Constructor and Description |
---|
LogEntry(LogEntry.Type type,
LogEntry.Level level,
Date timestamp,
String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static LogEntry.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
LogEntry.Level |
getLevel()
Specifies the severity level of the log entry.
|
String |
getMessage()
The log entry value.
|
Date |
getTimestamp()
The date and time of the log entry.
|
LogEntry.Type |
getType()
Specifies the log type for the log entry.
|
int |
hashCode() |
LogEntry.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"type","level","timestamp","message"}) public LogEntry(LogEntry.Type type, LogEntry.Level level, Date timestamp, String message)
public static LogEntry.Builder builder()
Create a new builder.
public LogEntry.Builder toBuilder()
public LogEntry.Type getType()
Specifies the log type for the log entry.
public LogEntry.Level getLevel()
Specifies the severity level of the log entry.
public Date getTimestamp()
The date and time of the log entry. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
public String getMessage()
The log entry value.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.