Class Data


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190901")
    public final class Data
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The payload of the event.

    Information within data comes from the resource emitting the event.
    Note: Objects should always be created or deserialized using the Data.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 Data.Builder, which maintain a set of all explicitly set fields called Data.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

      • builder

        public static Data.Builder builder()
        Create a new builder.
      • getEventGroupingId

        public String getEventGroupingId()
        This value links multiple audit events that are part of the same API operation.

        For example, a long running API operations that emit an event at the start and the end of an operation would use the same value in this field for both events.

        Returns:
        the value
      • getEventName

        public String getEventName()
        Name of the API operation that generated this event.

        Example: GetInstance

        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The OCID of the compartment of the resource emitting the event.
        Returns:
        the value
      • getCompartmentName

        public String getCompartmentName()
        The name of the compartment.

        This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event.

        Example: CompartmentA

        Returns:
        the value
      • getResourceName

        public String getResourceName()
        The name of the resource emitting the event.
        Returns:
        the value
      • getResourceId

        public String getResourceId()
        An OCID or some other ID for the resource emitting the event.
        Returns:
        the value
      • getAvailabilityDomain

        public String getAvailabilityDomain()
        The availability domain where the resource resides.
        Returns:
        the value
      • getFreeformTags

        public Map<String,​String> getFreeformTags()
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

        Returns:
        the value
      • getDefinedTags

        public Map<String,​Map<String,​Object>> getDefinedTags()
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

        Returns:
        the value
      • getIdentity

        public Identity getIdentity()
      • getRequest

        public Request getRequest()
      • getResponse

        public Response getResponse()
      • getAdditionalDetails

        public Map<String,​Object> getAdditionalDetails()
        A container object for attribues unique to the resource emitting the event.

        Example:

        ----- { "imageId": "ocid1.image.oc1.phx.", "shape": "VM.Standard1.1", "type": "CustomerVmi" } -----

        Returns:
        the value
      • 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