/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides details about a CloudTrail trail.

See Also:

AWS * API Reference

*/ class AwsCloudTrailTrailDetails { public: AWS_SECURITYHUB_API AwsCloudTrailTrailDetails(); AWS_SECURITYHUB_API AwsCloudTrailTrailDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsCloudTrailTrailDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; } /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; } /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; } /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); } /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); } /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;} /** *

The ARN of the log group that CloudTrail logs are delivered to.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; } /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; } /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; } /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); } /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); } /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;} /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;} /** *

The ARN of the role that the CloudWatch Events endpoint assumes when it * writes to the log group.

*/ inline AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;} /** *

Indicates whether the trail has custom event selectors.

*/ inline bool GetHasCustomEventSelectors() const{ return m_hasCustomEventSelectors; } /** *

Indicates whether the trail has custom event selectors.

*/ inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; } /** *

Indicates whether the trail has custom event selectors.

*/ inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; } /** *

Indicates whether the trail has custom event selectors.

*/ inline AwsCloudTrailTrailDetails& WithHasCustomEventSelectors(bool value) { SetHasCustomEventSelectors(value); return *this;} /** *

The Region where the trail was created.

*/ inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; } /** *

The Region where the trail was created.

*/ inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; } /** *

The Region where the trail was created.

*/ inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; } /** *

The Region where the trail was created.

*/ inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); } /** *

The Region where the trail was created.

*/ inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); } /** *

The Region where the trail was created.

*/ inline AwsCloudTrailTrailDetails& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;} /** *

The Region where the trail was created.

*/ inline AwsCloudTrailTrailDetails& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;} /** *

The Region where the trail was created.

*/ inline AwsCloudTrailTrailDetails& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;} /** *

Indicates whether the trail publishes events from global services such as IAM * to the log files.

*/ inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; } /** *

Indicates whether the trail publishes events from global services such as IAM * to the log files.

*/ inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; } /** *

Indicates whether the trail publishes events from global services such as IAM * to the log files.

*/ inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; } /** *

Indicates whether the trail publishes events from global services such as IAM * to the log files.

*/ inline AwsCloudTrailTrailDetails& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;} /** *

Indicates whether the trail applies only to the current Region or to all * Regions.

*/ inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; } /** *

Indicates whether the trail applies only to the current Region or to all * Regions.

*/ inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; } /** *

Indicates whether the trail applies only to the current Region or to all * Regions.

*/ inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; } /** *

Indicates whether the trail applies only to the current Region or to all * Regions.

*/ inline AwsCloudTrailTrailDetails& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;} /** *

Whether the trail is created for all accounts in an organization in * Organizations, or only for the current Amazon Web Services account.

*/ inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; } /** *

Whether the trail is created for all accounts in an organization in * Organizations, or only for the current Amazon Web Services account.

*/ inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; } /** *

Whether the trail is created for all accounts in an organization in * Organizations, or only for the current Amazon Web Services account.

*/ inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; } /** *

Whether the trail is created for all accounts in an organization in * Organizations, or only for the current Amazon Web Services account.

*/ inline AwsCloudTrailTrailDetails& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;} /** *

The KMS key ID to use to encrypt the logs.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The KMS key ID to use to encrypt the logs.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The KMS key ID to use to encrypt the logs.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The KMS key ID to use to encrypt the logs.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The KMS key ID to use to encrypt the logs.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The KMS key ID to use to encrypt the logs.

*/ inline AwsCloudTrailTrailDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The KMS key ID to use to encrypt the logs.

*/ inline AwsCloudTrailTrailDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The KMS key ID to use to encrypt the logs.

*/ inline AwsCloudTrailTrailDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

Indicates whether CloudTrail log file validation is enabled.

*/ inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; } /** *

Indicates whether CloudTrail log file validation is enabled.

*/ inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; } /** *

Indicates whether CloudTrail log file validation is enabled.

*/ inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; } /** *

Indicates whether CloudTrail log file validation is enabled.

*/ inline AwsCloudTrailTrailDetails& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;} /** *

The name of the trail.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the trail.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the trail.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the trail.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the trail.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the trail.

*/ inline AwsCloudTrailTrailDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the trail.

*/ inline AwsCloudTrailTrailDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the trail.

*/ inline AwsCloudTrailTrailDetails& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the S3 bucket where the log files are published.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

The name of the S3 bucket where the log files are published.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

The name of the S3 bucket where the log files are published.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

The name of the S3 bucket where the log files are published.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

The name of the S3 bucket where the log files are published.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

The name of the S3 bucket where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

The name of the S3 bucket where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

The name of the S3 bucket where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; } /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; } /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); } /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); } /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;} /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;} /** *

The S3 key prefix. The key prefix is added after the name of the S3 bucket * where the log files are published.

*/ inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;} /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *

The ARN of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; } /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; } /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; } /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::move(value); } /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); } /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;} /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(std::move(value)); return *this;} /** *

The name of the SNS topic that is used for notifications of log file * delivery.

*/ inline AwsCloudTrailTrailDetails& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;} /** *

The ARN of the trail.

*/ inline const Aws::String& GetTrailArn() const{ return m_trailArn; } /** *

The ARN of the trail.

*/ inline bool TrailArnHasBeenSet() const { return m_trailArnHasBeenSet; } /** *

The ARN of the trail.

*/ inline void SetTrailArn(const Aws::String& value) { m_trailArnHasBeenSet = true; m_trailArn = value; } /** *

The ARN of the trail.

*/ inline void SetTrailArn(Aws::String&& value) { m_trailArnHasBeenSet = true; m_trailArn = std::move(value); } /** *

The ARN of the trail.

*/ inline void SetTrailArn(const char* value) { m_trailArnHasBeenSet = true; m_trailArn.assign(value); } /** *

The ARN of the trail.

*/ inline AwsCloudTrailTrailDetails& WithTrailArn(const Aws::String& value) { SetTrailArn(value); return *this;} /** *

The ARN of the trail.

*/ inline AwsCloudTrailTrailDetails& WithTrailArn(Aws::String&& value) { SetTrailArn(std::move(value)); return *this;} /** *

The ARN of the trail.

*/ inline AwsCloudTrailTrailDetails& WithTrailArn(const char* value) { SetTrailArn(value); return *this;} private: Aws::String m_cloudWatchLogsLogGroupArn; bool m_cloudWatchLogsLogGroupArnHasBeenSet = false; Aws::String m_cloudWatchLogsRoleArn; bool m_cloudWatchLogsRoleArnHasBeenSet = false; bool m_hasCustomEventSelectors; bool m_hasCustomEventSelectorsHasBeenSet = false; Aws::String m_homeRegion; bool m_homeRegionHasBeenSet = false; bool m_includeGlobalServiceEvents; bool m_includeGlobalServiceEventsHasBeenSet = false; bool m_isMultiRegionTrail; bool m_isMultiRegionTrailHasBeenSet = false; bool m_isOrganizationTrail; bool m_isOrganizationTrailHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; bool m_logFileValidationEnabled; bool m_logFileValidationEnabledHasBeenSet = false; 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; Aws::String m_snsTopicName; bool m_snsTopicNameHasBeenSet = false; Aws::String m_trailArn; bool m_trailArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws