@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 AWS 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 AWS service that the request was made to.
|
Instant |
eventTime()
The date and time of the event returned.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResources()
Returns true if the Resources property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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 AWS 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 AWS service that the request was made to.
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()
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.
You can use hasResources() to see if a value was sent in this field.
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 © 2021. All rights reserved.