@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
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 |
getAccessKeyId()
The Amazon Web Services access key ID that was used to sign the request.
|
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.
|
String |
getEventSource()
The Amazon Web Services service to which the request was made.
|
Date |
getEventTime()
The date and time of the event returned.
|
String |
getReadOnly()
Information about whether the event is a write event or a read event.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyId(String accessKeyId)
The Amazon Web Services access key ID that was used to sign the request.
|
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 |
setEventSource(String eventSource)
The Amazon Web Services service to which the request was made.
|
void |
setEventTime(Date eventTime)
The date and time of the event returned.
|
void |
setReadOnly(String readOnly)
Information about whether the event is a write event or a read event.
|
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.
|
Event |
withAccessKeyId(String accessKeyId)
The Amazon Web Services access key ID that was used to sign the request.
|
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 |
withEventSource(String eventSource)
The Amazon Web Services service to which the request was made.
|
Event |
withEventTime(Date eventTime)
The date and time of the event returned.
|
Event |
withReadOnly(String readOnly)
Information about whether the event is a write event or a read event.
|
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 void setEventId(String eventId)
The CloudTrail ID of the event returned.
eventId
- The CloudTrail ID of the event returned.public String getEventId()
The CloudTrail ID of the event returned.
public Event withEventId(String eventId)
The CloudTrail ID of the event returned.
eventId
- The CloudTrail ID of the event returned.public void setEventName(String eventName)
The name of the event returned.
eventName
- The name of the event returned.public String getEventName()
The name of the event returned.
public Event withEventName(String eventName)
The name of the event returned.
eventName
- The name of the event returned.public void setReadOnly(String readOnly)
Information about whether the event is a write event or a read event.
readOnly
- Information about whether the event is a write event or a read event.public String getReadOnly()
Information about whether the event is a write event or a read event.
public Event withReadOnly(String readOnly)
Information about whether the event is a write event or a read event.
readOnly
- Information about whether the event is a write event or a read event.public void setAccessKeyId(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.
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 String getAccessKeyId()
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 Event withAccessKeyId(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.
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 void setEventTime(Date eventTime)
The date and time of the event returned.
eventTime
- The date and time of the event returned.public Date getEventTime()
The date and time of the event returned.
public Event withEventTime(Date eventTime)
The date and time of the event returned.
eventTime
- The date and time of the event returned.public void setEventSource(String eventSource)
The Amazon Web Services service to which the request was made.
eventSource
- The Amazon Web Services service to which the request was made.public String getEventSource()
The Amazon Web Services service to which the request was made.
public Event withEventSource(String eventSource)
The Amazon Web Services service to which the request was made.
eventSource
- The Amazon Web Services service to which the request was made.public void setUsername(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 String getUsername()
A user name or role name of the requester that called the API in the event returned.
public Event withUsername(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 List<Resource> getResources()
A list of resources referenced by the event returned.
public void setResources(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(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(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 String getCloudTrailEvent()
A JSON string that contains a representation of the event returned.
public Event withCloudTrailEvent(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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.