Class Event
- All Implemented Interfaces:
Serializable, Cloneable
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanA JSON string that contains a representation of the event returned.The CloudTrail ID of the event returned.The name of the event returned.The date and time of the event returned.A list of resources referenced by the event returned.A user name or role name of the requester that called the API in the event returned.inthashCode()voidsetCloudTrailEvent(String cloudTrailEvent) A JSON string that contains a representation of the event returned.voidsetEventId(String eventId) The CloudTrail ID of the event returned.voidsetEventName(String eventName) The name of the event returned.voidsetEventTime(Date eventTime) The date and time of the event returned.voidsetResources(Collection<Resource> resources) A list of resources referenced by the event returned.voidsetUsername(String username) A user name or role name of the requester that called the API in the event returned.toString()Returns a string representation of this object; useful for testing and debugging.withCloudTrailEvent(String cloudTrailEvent) A JSON string that contains a representation of the event returned.withEventId(String eventId) The CloudTrail ID of the event returned.withEventName(String eventName) The name of the event returned.withEventTime(Date eventTime) The date and time of the event returned.withResources(Resource... resources) A list of resources referenced by the event returned.withResources(Collection<Resource> resources) A list of resources referenced by the event returned.withUsername(String username) A user name or role name of the requester that called the API in the event returned.
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setEventId
The CloudTrail ID of the event returned.
- Parameters:
eventId- The CloudTrail ID of the event returned.
-
getEventId
The CloudTrail ID of the event returned.
- Returns:
- The CloudTrail ID of the event returned.
-
withEventId
-
setEventName
The name of the event returned.
- Parameters:
eventName- The name of the event returned.
-
getEventName
The name of the event returned.
- Returns:
- The name of the event returned.
-
withEventName
-
setEventTime
The date and time of the event returned.
- Parameters:
eventTime- The date and time of the event returned.
-
getEventTime
The date and time of the event returned.
- Returns:
- The date and time of the event returned.
-
withEventTime
-
setUsername
A user name or role name of the requester that called the API in the event returned.
- Parameters:
username- A user name or role name of the requester that called the API in the event returned.
-
getUsername
A user name or role name of the requester that called the API in the event returned.
- Returns:
- A user name or role name of the requester that called the API in the event returned.
-
withUsername
A user name or role name of the requester that called the API in the event returned.
- Parameters:
username- A user name or role name of the requester that called the API in the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getResources
-
setResources
A list of resources referenced by the event returned.
- Parameters:
resources- A list of resources referenced by the event returned.
-
withResources
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)orwithResources(java.util.Collection)if you want to override the existing values.- Parameters:
resources- A list of resources referenced by the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withResources
A list of resources referenced by the event returned.
- Parameters:
resources- A list of resources referenced by the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloudTrailEvent
A JSON string that contains a representation of the event returned.
- Parameters:
cloudTrailEvent- A JSON string that contains a representation of the event returned.
-
getCloudTrailEvent
A JSON string that contains a representation of the event returned.
- Returns:
- A JSON string that contains a representation of the event returned.
-
withCloudTrailEvent
A JSON string that contains a representation of the event returned.
- Parameters:
cloudTrailEvent- A JSON string that contains a representation of the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-