Class Data
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.audit.model.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 theData.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 theData.Builder
, which maintain a set of all explicitly set fields calledData.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
Data.Builder
-
Constructor Summary
Constructors Constructor Description Data(String eventGroupingId, String eventName, String compartmentId, String compartmentName, String resourceName, String resourceId, String availabilityDomain, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Identity identity, Request request, Response response, StateChange stateChange, Map<String,Object> additionalDetails)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Data.Builder
builder()
Create a new builder.boolean
equals(Object o)
Map<String,Object>
getAdditionalDetails()
A container object for attribues unique to the resource emitting the event.String
getAvailabilityDomain()
The availability domain where the resource resides.String
getCompartmentId()
The OCID of the compartment of the resource emitting the event.String
getCompartmentName()
The name of the compartment.Map<String,Map<String,Object>>
getDefinedTags()
Defined tags for this resource.String
getEventGroupingId()
This value links multiple audit events that are part of the same API operation.String
getEventName()
Name of the API operation that generated this event.Map<String,String>
getFreeformTags()
Free-form tags for this resource.Identity
getIdentity()
Request
getRequest()
String
getResourceId()
An OCID or some other ID for the resource emitting the event.String
getResourceName()
The name of the resource emitting the event.Response
getResponse()
StateChange
getStateChange()
int
hashCode()
Data.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
Data
@Deprecated @ConstructorProperties({"eventGroupingId","eventName","compartmentId","compartmentName","resourceName","resourceId","availabilityDomain","freeformTags","definedTags","identity","request","response","stateChange","additionalDetails"}) public Data(String eventGroupingId, String eventName, String compartmentId, String compartmentName, String resourceName, String resourceId, String availabilityDomain, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Identity identity, Request request, Response response, StateChange stateChange, Map<String,Object> additionalDetails)
Deprecated.
-
-
Method Detail
-
builder
public static Data.Builder builder()
Create a new builder.
-
toBuilder
public Data.Builder toBuilder()
-
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()
-
getStateChange
public StateChange getStateChange()
-
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 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
-
-