Class 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 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).

    • Method Detail

      • 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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel