public class Event
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cloudTrailEvent
A JSON string that contains a representation of the event returned.
|
private java.lang.String |
eventId
The CloudTrail ID of the event returned.
|
private java.lang.String |
eventName
The name of the event returned.
|
private java.util.Date |
eventTime
The date and time of the event returned.
|
private SdkInternalList<Resource> |
resources
A list of resources referenced by the event returned.
|
private java.lang.String |
username
A user name or role name of the requester that called the API in the
event returned.
|
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCloudTrailEvent()
A JSON string that contains a representation of the event returned.
|
java.lang.String |
getEventId()
The CloudTrail ID of the event returned.
|
java.lang.String |
getEventName()
The name of the event returned.
|
java.util.Date |
getEventTime()
The date and time of the event returned.
|
java.util.List<Resource> |
getResources()
A list of resources referenced by the event returned.
|
java.lang.String |
getUsername()
A user name or role name of the requester that called the API in the
event returned.
|
int |
hashCode() |
void |
setCloudTrailEvent(java.lang.String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
|
void |
setEventId(java.lang.String eventId)
The CloudTrail ID of the event returned.
|
void |
setEventName(java.lang.String eventName)
The name of the event returned.
|
void |
setEventTime(java.util.Date eventTime)
The date and time of the event returned.
|
void |
setResources(java.util.Collection<Resource> resources)
A list of resources referenced by the event returned.
|
void |
setUsername(java.lang.String username)
A user name or role name of the requester that called the API in the
event returned.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withCloudTrailEvent(java.lang.String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
|
Event |
withEventId(java.lang.String eventId)
The CloudTrail ID of the event returned.
|
Event |
withEventName(java.lang.String eventName)
The name of the event returned.
|
Event |
withEventTime(java.util.Date eventTime)
The date and time of the event returned.
|
Event |
withResources(java.util.Collection<Resource> resources)
A list of resources referenced by the event returned.
|
Event |
withResources(Resource... resources)
A list of resources referenced by the event returned.
|
Event |
withUsername(java.lang.String username)
A user name or role name of the requester that called the API in the
event returned.
|
private java.lang.String eventId
The CloudTrail ID of the event returned.
private java.lang.String eventName
The name of the event returned.
private java.util.Date eventTime
The date and time of the event returned.
private java.lang.String username
A user name or role name of the requester that called the API in the event returned.
private SdkInternalList<Resource> resources
A list of resources referenced by the event returned.
private java.lang.String cloudTrailEvent
A JSON string that contains a representation of the event returned.
public void setEventId(java.lang.String eventId)
The CloudTrail ID of the event returned.
eventId
- The CloudTrail ID of the event returned.public java.lang.String getEventId()
The CloudTrail ID of the event returned.
public Event withEventId(java.lang.String eventId)
The CloudTrail ID of the event returned.
eventId
- The CloudTrail ID of the event returned.public void setEventName(java.lang.String eventName)
The name of the event returned.
eventName
- The name of the event returned.public java.lang.String getEventName()
The name of the event returned.
public Event withEventName(java.lang.String eventName)
The name of the event returned.
eventName
- The name of the event returned.public void setEventTime(java.util.Date eventTime)
The date and time of the event returned.
eventTime
- The date and time of the event returned.public java.util.Date getEventTime()
The date and time of the event returned.
public Event withEventTime(java.util.Date eventTime)
The date and time of the event returned.
eventTime
- The date and time of the event returned.public void setUsername(java.lang.String username)
A user name or role name of the requester that called the API in the event returned.
username
- A user name or role name of the requester that called the API in
the event returned.public java.lang.String getUsername()
A user name or role name of the requester that called the API in the event returned.
public Event withUsername(java.lang.String username)
A user name or role name of the requester that called the API in the event returned.
username
- A user name or role name of the requester that called the API in
the event returned.public java.util.List<Resource> getResources()
A list of resources referenced by the event returned.
public void setResources(java.util.Collection<Resource> resources)
A list of resources referenced by the event returned.
resources
- A list of resources referenced by the event returned.public Event withResources(Resource... resources)
A list of resources referenced by the event returned.
NOTE: This method appends the values to the existing list (if
any). Use setResources(java.util.Collection)
or
withResources(java.util.Collection)
if you want to override the
existing values.
resources
- A list of resources referenced by the event returned.public Event withResources(java.util.Collection<Resource> resources)
A list of resources referenced by the event returned.
resources
- A list of resources referenced by the event returned.public void setCloudTrailEvent(java.lang.String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
cloudTrailEvent
- A JSON string that contains a representation of the event
returned.public java.lang.String getCloudTrailEvent()
A JSON string that contains a representation of the event returned.
public Event withCloudTrailEvent(java.lang.String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
cloudTrailEvent
- A JSON string that contains a representation of the event
returned.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Event clone()
clone
in class java.lang.Object