Interface CreateTrailResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<CreateTrailResponse.Builder,CreateTrailResponse>,SdkBuilder<CreateTrailResponse.Builder,CreateTrailResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateTrailResponse
public static interface CreateTrailResponse.Builder extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<CreateTrailResponse.Builder,CreateTrailResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CreateTrailResponse.BuildercloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.CreateTrailResponse.BuildercloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.CreateTrailResponse.BuilderincludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)Specifies whether the trail is publishing events from global services such as IAM to the log files.CreateTrailResponse.BuilderisMultiRegionTrail(Boolean isMultiRegionTrail)Specifies whether the trail exists in one Region or in all Regions.CreateTrailResponse.BuilderisOrganizationTrail(Boolean isOrganizationTrail)Specifies whether the trail is an organization trail.CreateTrailResponse.BuilderkmsKeyId(String kmsKeyId)Specifies the KMS key ID that encrypts the events delivered by CloudTrail.CreateTrailResponse.BuilderlogFileValidationEnabled(Boolean logFileValidationEnabled)Specifies whether log file integrity validation is enabled.CreateTrailResponse.Buildername(String name)Specifies the name of the trail.CreateTrailResponse.Builders3BucketName(String s3BucketName)Specifies the name of the Amazon S3 bucket designated for publishing log files.CreateTrailResponse.Builders3KeyPrefix(String s3KeyPrefix)Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery.CreateTrailResponse.BuildersnsTopicARN(String snsTopicARN)Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.CreateTrailResponse.BuildersnsTopicName(String snsTopicName)Deprecated.CreateTrailResponse.BuildertrailARN(String trailARN)Specifies the ARN of the trail that was created.-
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
name
CreateTrailResponse.Builder name(String name)
Specifies the name of the trail.
- Parameters:
name- Specifies the name of the trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3BucketName
CreateTrailResponse.Builder s3BucketName(String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log files.
- Parameters:
s3BucketName- Specifies the name of the Amazon S3 bucket designated for publishing log files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3KeyPrefix
CreateTrailResponse.Builder s3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.
- Parameters:
s3KeyPrefix- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicName
@Deprecated CreateTrailResponse.Builder snsTopicName(String snsTopicName)
Deprecated.This field is no longer in use. Use
SnsTopicARN.- Parameters:
snsTopicName- This field is no longer in use. UseSnsTopicARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicARN
CreateTrailResponse.Builder snsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:
arn:aws:sns:us-east-2:123456789012:MyTopic- Parameters:
snsTopicARN- Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:arn:aws:sns:us-east-2:123456789012:MyTopic- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeGlobalServiceEvents
CreateTrailResponse.Builder includeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services such as IAM to the log files.
- Parameters:
includeGlobalServiceEvents- Specifies whether the trail is publishing 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
CreateTrailResponse.Builder isMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail exists in one Region or in all Regions.
- Parameters:
isMultiRegionTrail- Specifies whether the trail exists in one Region or in all Regions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trailARN
CreateTrailResponse.Builder trailARN(String trailARN)
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail- Parameters:
trailARN- Specifies the ARN of the trail that was created. The format of a trail ARN is:arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logFileValidationEnabled
CreateTrailResponse.Builder logFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
- Parameters:
logFileValidationEnabled- Specifies whether log file integrity validation is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogsLogGroupArn
CreateTrailResponse.Builder cloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
- Parameters:
cloudWatchLogsLogGroupArn- Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogsRoleArn
CreateTrailResponse.Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- Parameters:
cloudWatchLogsRoleArn- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
CreateTrailResponse.Builder kmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012- Parameters:
kmsKeyId- Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isOrganizationTrail
CreateTrailResponse.Builder isOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
- Parameters:
isOrganizationTrail- Specifies whether the trail is an organization trail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-