Class AwsCloudTrailTrailDetails

java.lang.Object
software.amazon.awssdk.services.securityhub.model.AwsCloudTrailTrailDetails
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>

@Generated("software.amazon.awssdk:codegen") public final class AwsCloudTrailTrailDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>

Provides details about a CloudTrail trail.

See Also:
  • Method Details

    • cloudWatchLogsLogGroupArn

      public final String cloudWatchLogsLogGroupArn()

      The ARN of the log group that CloudTrail logs are delivered to.

      Returns:
      The ARN of the log group that CloudTrail logs are delivered to.
    • cloudWatchLogsRoleArn

      public final String cloudWatchLogsRoleArn()

      The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.

      Returns:
      The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
    • hasCustomEventSelectors

      public final Boolean hasCustomEventSelectors()

      Indicates whether the trail has custom event selectors.

      Returns:
      Indicates whether the trail has custom event selectors.
    • homeRegion

      public final String homeRegion()

      The Region where the trail was created.

      Returns:
      The Region where the trail was created.
    • includeGlobalServiceEvents

      public final Boolean includeGlobalServiceEvents()

      Indicates whether the trail publishes events from global services such as IAM to the log files.

      Returns:
      Indicates whether the trail publishes events from global services such as IAM to the log files.
    • isMultiRegionTrail

      public final Boolean isMultiRegionTrail()

      Indicates whether the trail applies only to the current Region or to all Regions.

      Returns:
      Indicates whether the trail applies only to the current Region or to all Regions.
    • isOrganizationTrail

      public final Boolean isOrganizationTrail()

      Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.

      Returns:
      Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
    • kmsKeyId

      public final String kmsKeyId()

      The KMS key ID to use to encrypt the logs.

      Returns:
      The KMS key ID to use to encrypt the logs.
    • logFileValidationEnabled

      public final Boolean logFileValidationEnabled()

      Indicates whether CloudTrail log file validation is enabled.

      Returns:
      Indicates whether CloudTrail log file validation is enabled.
    • name

      public final String name()

      The name of the trail.

      Returns:
      The name of the trail.
    • s3BucketName

      public final String s3BucketName()

      The name of the S3 bucket where the log files are published.

      Returns:
      The name of the S3 bucket where the log files are published.
    • s3KeyPrefix

      public final String s3KeyPrefix()

      The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.

      Returns:
      The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
    • snsTopicArn

      public final String snsTopicArn()

      The ARN of the SNS topic that is used for notifications of log file delivery.

      Returns:
      The ARN of the SNS topic that is used for notifications of log file delivery.
    • snsTopicName

      public final String snsTopicName()

      The name of the SNS topic that is used for notifications of log file delivery.

      Returns:
      The name of the SNS topic that is used for notifications of log file delivery.
    • trailArn

      public final String trailArn()

      The ARN of the trail.

      Returns:
      The ARN of the trail.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
      Returns:
      a builder for type T
    • builder

      public static AwsCloudTrailTrailDetails.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AwsCloudTrailTrailDetails.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.