Interface AwsCloudTrailTrailDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsCloudTrailTrailDetails.Builder,
,AwsCloudTrailTrailDetails> SdkBuilder<AwsCloudTrailTrailDetails.Builder,
,AwsCloudTrailTrailDetails> SdkPojo
- Enclosing class:
AwsCloudTrailTrailDetails
-
Method Summary
Modifier and TypeMethodDescriptioncloudWatchLogsLogGroupArn
(String cloudWatchLogsLogGroupArn) The ARN of the log group that CloudTrail logs are delivered to.cloudWatchLogsRoleArn
(String cloudWatchLogsRoleArn) The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.hasCustomEventSelectors
(Boolean hasCustomEventSelectors) Indicates whether the trail has custom event selectors.homeRegion
(String homeRegion) The Region where the trail was created.includeGlobalServiceEvents
(Boolean includeGlobalServiceEvents) Indicates whether the trail publishes events from global services such as IAM to the log files.isMultiRegionTrail
(Boolean isMultiRegionTrail) Indicates whether the trail applies only to the current Region or to all Regions.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.The KMS key ID to use to encrypt the logs.logFileValidationEnabled
(Boolean logFileValidationEnabled) Indicates whether CloudTrail log file validation is enabled.The name of the trail.s3BucketName
(String s3BucketName) The name of the S3 bucket where the log files are published.s3KeyPrefix
(String s3KeyPrefix) The S3 key prefix.snsTopicArn
(String snsTopicArn) The ARN of the SNS topic that is used for notifications of log file delivery.snsTopicName
(String snsTopicName) The name of the SNS topic that is used for notifications of log file delivery.The ARN of the trail.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
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
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.
-