@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Event.Builder,Event>
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Event.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessKeyId()
The Amazon Web Services access key ID that was used to sign the request.
|
static Event.Builder |
builder() |
String |
cloudTrailEvent()
A JSON string that contains a representation of the event returned.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
The CloudTrail ID of the event returned.
|
String |
eventName()
The name of the event returned.
|
String |
eventSource()
The Amazon Web Services service to which the request was made.
|
Instant |
eventTime()
The date and time of the event returned.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResources()
For responses, this returns true if the service returned a value for the Resources property.
|
String |
readOnly()
Information about whether the event is a write event or a read event.
|
List<Resource> |
resources()
A list of resources referenced by the event returned.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Event.Builder> |
serializableBuilderClass() |
Event.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
username()
A user name or role name of the requester that called the API in the event returned.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String eventId()
The CloudTrail ID of the event returned.
public final String eventName()
The name of the event returned.
public final String readOnly()
Information about whether the event is a write event or a read event.
public final String accessKeyId()
The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.
public final Instant eventTime()
The date and time of the event returned.
public final String eventSource()
The Amazon Web Services service to which the request was made.
public final String username()
A user name or role name of the requester that called the API in the event returned.
public final boolean hasResources()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Resource> resources()
A list of resources referenced by the event returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResources() method.
public final String cloudTrailEvent()
A JSON string that contains a representation of the event returned.
public Event.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Event.Builder,Event>public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.