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.ExplicitlySetBmcModelAll 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 SummaryNested Classes Modifier and Type Class Description static classAuditEvent.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditEvent.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCloudEventsVersion()The version of the CloudEvents specification.StringgetContentType()The content type of the data contained in data.DatagetData()StringgetEventId()The GUID of the event.DategetEventTime()The time the event occurred, expressed in RFC 3339 timestamp format.StringgetEventType()The type of event that happened.StringgetEventTypeVersion()The version of the event type.StringgetSource()The source of the event.inthashCode()AuditEvent.BuildertoBuilder()StringtoString()StringtoString(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- 
builderpublic static AuditEvent.Builder builder() Create a new builder.
 - 
toBuilderpublic AuditEvent.Builder toBuilder() 
 - 
getEventTypepublic 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
 
 - 
getCloudEventsVersionpublic 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
 
 - 
getEventTypeVersionpublic 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
 
 - 
getSourcepublic String getSource() The source of the event.Example: ComputeApi - Returns:
- the value
 
 - 
getEventIdpublic String getEventId() The GUID of the event.- Returns:
- the value
 
 - 
getEventTimepublic Date getEventTime() The time the event occurred, expressed in RFC 3339 timestamp format.Example: 2019-09-18T00:10:59.252Z - Returns:
- the value
 
 - 
getContentTypepublic String getContentType() The content type of the data contained in data.Example: application/json - Returns:
- the value
 
 - 
getDatapublic Data getData() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-