@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuditEvent extends Object implements Serializable, Cloneable, StructuredPojo
An event from a source outside of Amazon Web Services that you want CloudTrail to log.
Constructor and Description |
---|
AuditEvent() |
Modifier and Type | Method and Description |
---|---|
AuditEvent |
clone() |
boolean |
equals(Object obj) |
String |
getEventData()
The content of an audit event that comes from the event, such as
userIdentity ,
userAgent , and eventSource . |
String |
getEventDataChecksum()
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches
with the checksum.
|
String |
getId()
The original event ID from the source event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEventData(String eventData)
The content of an audit event that comes from the event, such as
userIdentity ,
userAgent , and eventSource . |
void |
setEventDataChecksum(String eventDataChecksum)
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches
with the checksum.
|
void |
setId(String id)
The original event ID from the source event.
|
String |
toString()
Returns a string representation of this object.
|
AuditEvent |
withEventData(String eventData)
The content of an audit event that comes from the event, such as
userIdentity ,
userAgent , and eventSource . |
AuditEvent |
withEventDataChecksum(String eventDataChecksum)
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches
with the checksum.
|
AuditEvent |
withId(String id)
The original event ID from the source event.
|
public void setEventData(String eventData)
The content of an audit event that comes from the event, such as userIdentity
,
userAgent
, and eventSource
.
eventData
- The content of an audit event that comes from the event, such as userIdentity
,
userAgent
, and eventSource
.public String getEventData()
The content of an audit event that comes from the event, such as userIdentity
,
userAgent
, and eventSource
.
userIdentity
,
userAgent
, and eventSource
.public AuditEvent withEventData(String eventData)
The content of an audit event that comes from the event, such as userIdentity
,
userAgent
, and eventSource
.
eventData
- The content of an audit event that comes from the event, such as userIdentity
,
userAgent
, and eventSource
.public void setEventDataChecksum(String eventDataChecksum)
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches with the checksum. Calculate the checksum by running a command like the following:
printf %s $eventdata | openssl dgst -binary -sha256 | base64
eventDataChecksum
- A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that
matches with the checksum. Calculate the checksum by running a command like the following:
printf %s $eventdata | openssl dgst -binary -sha256 | base64
public String getEventDataChecksum()
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches with the checksum. Calculate the checksum by running a command like the following:
printf %s $eventdata | openssl dgst -binary -sha256 | base64
printf %s $eventdata | openssl dgst -binary -sha256 | base64
public AuditEvent withEventDataChecksum(String eventDataChecksum)
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches with the checksum. Calculate the checksum by running a command like the following:
printf %s $eventdata | openssl dgst -binary -sha256 | base64
eventDataChecksum
- A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that
matches with the checksum. Calculate the checksum by running a command like the following:
printf %s $eventdata | openssl dgst -binary -sha256 | base64
public void setId(String id)
The original event ID from the source event.
id
- The original event ID from the source event.public String getId()
The original event ID from the source event.
public AuditEvent withId(String id)
The original event ID from the source event.
id
- The original event ID from the source event.public String toString()
toString
in class Object
Object.toString()
public AuditEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.