Class AuditEvent
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.audit.model.AuditEvent
-
@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 theAuditEvent.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 theAuditEvent.Builder
, which maintain a set of all explicitly set fields calledAuditEvent.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AuditEvent
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static AuditEvent.Builder builder()
Create a new builder.
-
toBuilder
public AuditEvent.Builder toBuilder()
-
getEventType
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
- Returns:
- the value
-
getCloudEventsVersion
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
- Returns:
- the value
-
getEventTypeVersion
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
- Returns:
- the value
-
getSource
public String getSource()
The source of the event.Example: ComputeApi
- Returns:
- the value
-
getEventId
public String getEventId()
The GUID of the event.- Returns:
- the value
-
getEventTime
public Date getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.Example: 2019-09-18T00:10:59.252Z
- Returns:
- the value
-
getContentType
public String getContentType()
The content type of the data contained in data.Example: application/json
- Returns:
- the value
-
getData
public Data getData()
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-