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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsCloudTrailTrailDetails.BuildercloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)The ARN of the log group that CloudTrail logs are delivered to.AwsCloudTrailTrailDetails.BuildercloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.AwsCloudTrailTrailDetails.BuilderhasCustomEventSelectors(Boolean hasCustomEventSelectors)Indicates whether the trail has custom event selectors.AwsCloudTrailTrailDetails.BuilderhomeRegion(String homeRegion)The Region where the trail was created.AwsCloudTrailTrailDetails.BuilderincludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)Indicates whether the trail publishes events from global services such as IAM to the log files.AwsCloudTrailTrailDetails.BuilderisMultiRegionTrail(Boolean isMultiRegionTrail)Indicates whether the trail applies only to the current Region or to all Regions.AwsCloudTrailTrailDetails.BuilderisOrganizationTrail(Boolean isOrganizationTrail)Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.AwsCloudTrailTrailDetails.BuilderkmsKeyId(String kmsKeyId)The KMS key ID to use to encrypt the logs.AwsCloudTrailTrailDetails.BuilderlogFileValidationEnabled(Boolean logFileValidationEnabled)Indicates whether CloudTrail log file validation is enabled.AwsCloudTrailTrailDetails.Buildername(String name)The name of the trail.AwsCloudTrailTrailDetails.Builders3BucketName(String s3BucketName)The name of the S3 bucket where the log files are published.AwsCloudTrailTrailDetails.Builders3KeyPrefix(String s3KeyPrefix)The S3 key prefix.AwsCloudTrailTrailDetails.BuildersnsTopicArn(String snsTopicArn)The ARN of the SNS topic that is used for notifications of log file delivery.AwsCloudTrailTrailDetails.BuildersnsTopicName(String snsTopicName)The name of the SNS topic that is used for notifications of log file delivery.AwsCloudTrailTrailDetails.BuildertrailArn(String trailArn)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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
AwsCloudTrailTrailDetails.Builder kmsKeyId(String 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
AwsCloudTrailTrailDetails.Builder name(String 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
AwsCloudTrailTrailDetails.Builder trailArn(String 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.
-
-