@Generated(value="OracleSDKGenerator", comments="API Version: 20190901") public final class AuditEvent extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
All the attributes of an audit event. For more information, see Viewing Audit Log
Events.
Note: Objects should always be created or deserialized using the AuditEvent.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 AuditEvent.Builder
, which maintain a
set of all explicitly set fields called AuditEvent.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AuditEvent.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
AuditEvent(String eventType,
String cloudEventsVersion,
String eventTypeVersion,
String source,
String eventId,
Date eventTime,
String contentType,
Data data)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AuditEvent.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCloudEventsVersion()
The version of the CloudEvents specification.
|
String |
getContentType()
The content type of the data contained in
data . |
Data |
getData() |
String |
getEventId()
The GUID of the event.
|
Date |
getEventTime()
The time the event occurred, expressed in RFC 3339
timestamp format.
|
String |
getEventType()
The type of event that happened.
|
String |
getEventTypeVersion()
The version of the event type.
|
String |
getSource()
The source of the event.
|
int |
hashCode() |
AuditEvent.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"eventType","cloudEventsVersion","eventTypeVersion","source","eventId","eventTime","contentType","data"}) public AuditEvent(String eventType, String cloudEventsVersion, String eventTypeVersion, String source, String eventId, Date eventTime, String contentType, Data data)
public static AuditEvent.Builder builder()
Create a new builder.
public AuditEvent.Builder toBuilder()
public String getEventType()
The type of event that happened.
The service that produces the event can also add, remove, or change the meaning of a
field. A service implementing these type changes would publish a new version of an eventType
and revise the eventTypeVersion
field.
Example: com.oraclecloud.ComputeApi.GetInstance
public String getCloudEventsVersion()
The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
Audit uses version 0.1 specification of the CloudEvents event envelope.
Example: 0.1
public String getEventTypeVersion()
The version of the event type. This version applies to the payload of the event, not the
envelope. Use cloudEventsVersion
to determine the version of the envelope.
Example: 2.0
public String getSource()
The source of the event.
Example: ComputeApi
public String getEventId()
The GUID of the event.
public Date getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.252Z
public String getContentType()
The content type of the data contained in data
.
Example: application/json
public Data getData()
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–2024. All rights reserved.