@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
).
Modifier and Type | Class and Description |
---|---|
static class |
Data.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and 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.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static Data.Builder builder()
Create a new builder.
public Data.Builder toBuilder()
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.
public String getEventName()
Name of the API operation that generated this event.
Example: GetInstance
public String getCompartmentId()
The OCID of the compartment of the resource emitting the event.
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
public String getResourceName()
The name of the resource emitting the event.
public String getResourceId()
An OCID or some other ID for the resource emitting the event.
public String getAvailabilityDomain()
The availability domain where the resource resides.
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"}
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"}}
public Identity getIdentity()
public Request getRequest()
public Response getResponse()
public StateChange getStateChange()
public Map<String,Object> getAdditionalDetails()
A container object for attribues unique to the resource emitting the event.
Example:
----- { "imageId": "ocid1.image.oc1.phx.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.