/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns the objects or data listed below if successful. Otherwise, returns an
* error.See Also:
AWS
* API Reference
Specifies the name of the trail.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Specifies the name of the trail.
*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *Specifies the name of the trail.
*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *Specifies the name of the trail.
*/ inline void SetName(const char* value) { m_name.assign(value); } /** *Specifies the name of the trail.
*/ inline UpdateTrailResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Specifies the name of the trail.
*/ inline UpdateTrailResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Specifies the name of the trail.
*/ inline UpdateTrailResult& WithName(const char* value) { SetName(value); return *this;} /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketName = value; } /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketName = std::move(value); } /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline void SetS3BucketName(const char* value) { m_s3BucketName.assign(value); } /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline UpdateTrailResult& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline UpdateTrailResult& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *Specifies the name of the Amazon S3 bucket designated for publishing log * files.
*/ inline UpdateTrailResult& 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 IAM Log Files.
*/ 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 IAM Log Files.
*/ inline void SetS3KeyPrefix(const Aws::String& value) { 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 IAM Log Files.
*/ inline void SetS3KeyPrefix(Aws::String&& value) { 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 IAM Log Files.
*/ inline void SetS3KeyPrefix(const char* value) { 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 IAM Log Files.
*/ inline UpdateTrailResult& 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 IAM Log Files.
*/ inline UpdateTrailResult& 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 IAM Log Files.
*/ inline UpdateTrailResult& 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 whether the trail is publishing events from global services such as * IAM to the log files.
*/ inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; } /** *Specifies whether the trail is publishing events from global services such as * IAM to the log files.
*/ inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEvents = value; } /** *Specifies whether the trail is publishing events from global services such as * IAM to the log files.
*/ inline UpdateTrailResult& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;} /** *Specifies whether the trail exists in one Region or in all Regions.
*/ inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; } /** *Specifies whether the trail exists in one Region or in all Regions.
*/ inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrail = value; } /** *Specifies whether the trail exists in one Region or in all Regions.
*/ inline UpdateTrailResult& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;} /** *Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies the ARN of the trail that was updated. The following is the format * of a trail ARN.
* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Specifies whether log file integrity validation is enabled.
*/ inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; } /** *Specifies whether log file integrity validation is enabled.
*/ inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabled = value; } /** *Specifies whether log file integrity validation is enabled.
*/ inline UpdateTrailResult& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;} /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; } /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArn = value; } /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArn = std::move(value); } /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArn.assign(value); } /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline UpdateTrailResult& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline UpdateTrailResult& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;} /** *Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail * logs are delivered.
*/ inline UpdateTrailResult& 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 void SetCloudWatchLogsRoleArn(const Aws::String& value) { 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_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_cloudWatchLogsRoleArn.assign(value); } /** *Specifies the role for the CloudWatch Logs endpoint to assume to write to a * user's log group.
*/ inline UpdateTrailResult& 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 UpdateTrailResult& 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 UpdateTrailResult& 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 whether the trail is an organization trail.
*/ inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; } /** *Specifies whether the trail is an organization trail.
*/ inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrail = value; } /** *Specifies whether the trail is an organization trail.
*/ inline UpdateTrailResult& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateTrailResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateTrailResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateTrailResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_s3BucketName; Aws::String m_s3KeyPrefix; Aws::String m_snsTopicARN; bool m_includeGlobalServiceEvents; bool m_isMultiRegionTrail; Aws::String m_trailARN; bool m_logFileValidationEnabled; Aws::String m_cloudWatchLogsLogGroupArn; Aws::String m_cloudWatchLogsRoleArn; Aws::String m_kmsKeyId; bool m_isOrganizationTrail; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws