Class AuditEvent
- java.lang.Object
-
- software.amazon.awssdk.services.cloudtraildata.model.AuditEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AuditEvent.Builder,AuditEvent>
@Generated("software.amazon.awssdk:codegen") public final class AuditEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AuditEvent.Builder,AuditEvent>
An event from a source outside of Amazon Web Services that you want CloudTrail to log.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuditEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditEvent.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeventData()The content of an audit event that comes from the event, such asuserIdentity,userAgent, andeventSource.StringeventDataChecksum()A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches with the checksum.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The original event ID from the source event.List<SdkField<?>>sdkFields()static Class<? extends AuditEvent.Builder>serializableBuilderClass()AuditEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
eventData
public final String eventData()
The content of an audit event that comes from the event, such as
userIdentity,userAgent, andeventSource.- Returns:
- The content of an audit event that comes from the event, such as
userIdentity,userAgent, andeventSource.
-
eventDataChecksum
public final 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- Returns:
- 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
-
id
public final String id()
The original event ID from the source event.
- Returns:
- The original event ID from the source event.
-
toBuilder
public AuditEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuditEvent.Builder,AuditEvent>
-
builder
public static AuditEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends AuditEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-