Interface AwsCloudTrailTrailDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>, SdkBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>, SdkPojo
Enclosing class:
AwsCloudTrailTrailDetails

public static interface AwsCloudTrailTrailDetails.Builder extends SdkPojo, CopyableBuilder<AwsCloudTrailTrailDetails.Builder,AwsCloudTrailTrailDetails>
  • Method Details

    • cloudWatchLogsLogGroupArn

      AwsCloudTrailTrailDetails.Builder cloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)

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

      Parameters:
      cloudWatchLogsLogGroupArn - The ARN of the log group that CloudTrail logs are delivered to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudWatchLogsRoleArn

      AwsCloudTrailTrailDetails.Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)

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

      Parameters:
      cloudWatchLogsRoleArn - The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hasCustomEventSelectors

      AwsCloudTrailTrailDetails.Builder hasCustomEventSelectors(Boolean hasCustomEventSelectors)

      Indicates whether the trail has custom event selectors.

      Parameters:
      hasCustomEventSelectors - Indicates whether the trail has custom event selectors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • homeRegion

      AwsCloudTrailTrailDetails.Builder homeRegion(String homeRegion)

      The Region where the trail was created.

      Parameters:
      homeRegion - The Region where the trail was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeGlobalServiceEvents

      AwsCloudTrailTrailDetails.Builder includeGlobalServiceEvents(Boolean includeGlobalServiceEvents)

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

      Parameters:
      includeGlobalServiceEvents - Indicates whether the trail publishes events from global services such as IAM to the log files.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isMultiRegionTrail

      AwsCloudTrailTrailDetails.Builder isMultiRegionTrail(Boolean isMultiRegionTrail)

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

      Parameters:
      isMultiRegionTrail - Indicates whether the trail applies only to the current Region or to all Regions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isOrganizationTrail

      AwsCloudTrailTrailDetails.Builder isOrganizationTrail(Boolean isOrganizationTrail)

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

      Parameters:
      isOrganizationTrail - Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      The KMS key ID to use to encrypt the logs.

      Parameters:
      kmsKeyId - The KMS key ID to use to encrypt the logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logFileValidationEnabled

      AwsCloudTrailTrailDetails.Builder logFileValidationEnabled(Boolean logFileValidationEnabled)

      Indicates whether CloudTrail log file validation is enabled.

      Parameters:
      logFileValidationEnabled - Indicates whether CloudTrail log file validation is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the trail.

      Parameters:
      name - The name of the trail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3BucketName

      AwsCloudTrailTrailDetails.Builder s3BucketName(String s3BucketName)

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

      Parameters:
      s3BucketName - The name of the S3 bucket where the log files are published.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3KeyPrefix

      AwsCloudTrailTrailDetails.Builder s3KeyPrefix(String s3KeyPrefix)

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

      Parameters:
      s3KeyPrefix - The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snsTopicArn

      AwsCloudTrailTrailDetails.Builder snsTopicArn(String snsTopicArn)

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

      Parameters:
      snsTopicArn - The ARN of the SNS topic that is used for notifications of log file delivery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • snsTopicName

      AwsCloudTrailTrailDetails.Builder snsTopicName(String snsTopicName)

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

      Parameters:
      snsTopicName - The name of the SNS topic that is used for notifications of log file delivery.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trailArn

      The ARN of the trail.

      Parameters:
      trailArn - The ARN of the trail.
      Returns:
      Returns a reference to this object so that method calls can be chained together.