public class Event extends Object implements Serializable, Cloneable
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getCloudTrailEvent()
A JSON string that contains a representation of the event returned.
|
String |
getEventId()
The CloudTrail ID of the event returned.
|
String |
getEventName()
The name of the event returned.
|
Date |
getEventTime()
The date and time of the event returned.
|
List<Resource> |
getResources()
A list of resources referenced by the event returned.
|
String |
getUsername()
A user name or role name of the requester that called the API in the
event returned.
|
int |
hashCode() |
void |
setCloudTrailEvent(String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
|
void |
setEventId(String eventId)
The CloudTrail ID of the event returned.
|
void |
setEventName(String eventName)
The name of the event returned.
|
void |
setEventTime(Date eventTime)
The date and time of the event returned.
|
void |
setResources(Collection<Resource> resources)
A list of resources referenced by the event returned.
|
void |
setUsername(String username)
A user name or role name of the requester that called the API in the
event returned.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withCloudTrailEvent(String cloudTrailEvent)
A JSON string that contains a representation of the event returned.
|
Event |
withEventId(String eventId)
The CloudTrail ID of the event returned.
|
Event |
withEventName(String eventName)
The name of the event returned.
|
Event |
withEventTime(Date eventTime)
The date and time of the event returned.
|
Event |
withResources(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(String username)
A user name or role name of the requester that called the API in the
event returned.
|
public String getEventId()
public void setEventId(String eventId)
eventId - The CloudTrail ID of the event returned.public Event withEventId(String eventId)
Returns a reference to this object so that method calls can be chained together.
eventId - The CloudTrail ID of the event returned.public String getEventName()
public void setEventName(String eventName)
eventName - The name of the event returned.public Event withEventName(String eventName)
Returns a reference to this object so that method calls can be chained together.
eventName - The name of the event returned.public Date getEventTime()
public void setEventTime(Date eventTime)
eventTime - The date and time of the event returned.public Event withEventTime(Date eventTime)
Returns a reference to this object so that method calls can be chained together.
eventTime - The date and time of the event returned.public String getUsername()
public void setUsername(String username)
username - A user name or role name of the requester that called the API in the
event returned.public Event withUsername(String username)
Returns a reference to this object so that method calls can be chained together.
username - A user name or role name of the requester that called the API in the
event returned.public List<Resource> getResources()
public void setResources(Collection<Resource> resources)
resources - A list of resources referenced by the event returned.public Event withResources(Resource... resources)
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.
Returns a reference to this object so that method calls can be chained together.
resources - A list of resources referenced by the event returned.public Event withResources(Collection<Resource> resources)
Returns a reference to this object so that method calls can be chained together.
resources - A list of resources referenced by the event returned.public String getCloudTrailEvent()
public void setCloudTrailEvent(String cloudTrailEvent)
cloudTrailEvent - A JSON string that contains a representation of the event returned.public Event withCloudTrailEvent(String cloudTrailEvent)
Returns a reference to this object so that method calls can be chained together.
cloudTrailEvent - A JSON string that contains a representation of the event returned.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.