/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The settings for a trail.See Also:
AWS
* API Reference
Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline Trail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline Trail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Name of the trail set by calling CreateTrail. The maximum length is * 128 characters.
*/ inline Trail& WithName(const char* value) { SetName(value); return *this;} /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline Trail& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline Trail& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. * See Amazon * S3 Bucket Naming Requirements.
*/ inline Trail& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *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. The maximum length is 200 characters.
*/ inline const Aws::String& GetS3KeyPrefix() const{ return m_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. The maximum length is 200 characters.
*/ inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } /** *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. The maximum length is 200 characters.
*/ inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; } /** *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. The maximum length is 200 characters.
*/ inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); } /** *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. The maximum length is 200 characters.
*/ inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); } /** *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. The maximum length is 200 characters.
*/ inline Trail& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;} /** *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. The maximum length is 200 characters.
*/ inline Trail& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;} /** *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. The maximum length is 200 characters.
*/ inline Trail& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;} /** *Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send * notifications when log files are delivered. The following is the format of a * topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
Set to True to include Amazon Web Services API calls from Amazon Web * Services global services such as IAM. Otherwise, False.
*/ inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; } /** *Set to True to include Amazon Web Services API calls from Amazon Web * Services global services such as IAM. Otherwise, False.
*/ inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; } /** *Set to True to include Amazon Web Services API calls from Amazon Web * Services global services such as IAM. Otherwise, False.
*/ inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; } /** *Set to True to include Amazon Web Services API calls from Amazon Web * Services global services such as IAM. Otherwise, False.
*/ inline Trail& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;} /** *Specifies whether the trail exists only in one Region or exists in all * Regions.
*/ inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; } /** *Specifies whether the trail exists only in one Region or exists in all * Regions.
*/ inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; } /** *Specifies whether the trail exists only in one Region or exists in all * Regions.
*/ inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; } /** *Specifies whether the trail exists only in one Region or exists in all * Regions.
*/ inline Trail& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;} /** *The Region in which the trail was created.
*/ inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; } /** *The Region in which the trail was created.
*/ inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; } /** *The Region in which the trail was created.
*/ inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; } /** *The Region in which the trail was created.
*/ inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); } /** *The Region in which the trail was created.
*/ inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); } /** *The Region in which the trail was created.
*/ inline Trail& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;} /** *The Region in which the trail was created.
*/ inline Trail& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;} /** *The Region in which the trail was created.
*/ inline Trail& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;} /** *Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail. The following is the format of a trail * ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies whether log file validation is enabled.
*/ inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; } /** *Specifies whether log file validation is enabled.
*/ inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; } /** *Specifies whether log file validation is enabled.
*/ inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; } /** *Specifies whether log file validation is enabled.
*/ inline Trail& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;} /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; } /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; } /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; } /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); } /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); } /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline Trail& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline Trail& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;} /** *Specifies an Amazon Resource Name (ARN), a unique identifier that represents * the log group to which CloudTrail logs will be delivered.
*/ inline Trail& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline Trail& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;} /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline Trail& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;} /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline Trail& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;} /** *Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies the KMS key ID that encrypts the logs 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
*
Specifies if the trail has custom event selectors.
*/ inline bool GetHasCustomEventSelectors() const{ return m_hasCustomEventSelectors; } /** *Specifies if the trail has custom event selectors.
*/ inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; } /** *Specifies if the trail has custom event selectors.
*/ inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; } /** *Specifies if the trail has custom event selectors.
*/ inline Trail& WithHasCustomEventSelectors(bool value) { SetHasCustomEventSelectors(value); return *this;} /** *Specifies whether a trail has insight types specified in an
* InsightSelector
list.
Specifies whether a trail has insight types specified in an
* InsightSelector
list.
Specifies whether a trail has insight types specified in an
* InsightSelector
list.
Specifies whether a trail has insight types specified in an
* InsightSelector
list.
Specifies whether the trail is an organization trail.
*/ inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; } /** *Specifies whether the trail is an organization trail.
*/ inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; } /** *Specifies whether the trail is an organization trail.
*/ inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; } /** *Specifies whether the trail is an organization trail.
*/ inline Trail& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3KeyPrefix; bool m_s3KeyPrefixHasBeenSet = false; Aws::String m_snsTopicARN; bool m_snsTopicARNHasBeenSet = false; bool m_includeGlobalServiceEvents; bool m_includeGlobalServiceEventsHasBeenSet = false; bool m_isMultiRegionTrail; bool m_isMultiRegionTrailHasBeenSet = false; Aws::String m_homeRegion; bool m_homeRegionHasBeenSet = false; Aws::String m_trailARN; bool m_trailARNHasBeenSet = false; bool m_logFileValidationEnabled; bool m_logFileValidationEnabledHasBeenSet = false; Aws::String m_cloudWatchLogsLogGroupArn; bool m_cloudWatchLogsLogGroupArnHasBeenSet = false; Aws::String m_cloudWatchLogsRoleArn; bool m_cloudWatchLogsRoleArnHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; bool m_hasCustomEventSelectors; bool m_hasCustomEventSelectorsHasBeenSet = false; bool m_hasInsightSelectors; bool m_hasInsightSelectorsHasBeenSet = false; bool m_isOrganizationTrail; bool m_isOrganizationTrailHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws