7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
34 AWS_CLOUDTRAIL_API
Trail() =
default;
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
62 template<
typename S3BucketNameT = Aws::String>
63 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet =
true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
64 template<
typename S3BucketNameT = Aws::String>
77 template<
typename S3KeyPrefixT = Aws::String>
78 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet =
true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
79 template<
typename S3KeyPrefixT = Aws::String>
91 template<
typename SnsTopicARNT = Aws::String>
92 void SetSnsTopicARN(SnsTopicARNT&& value) { m_snsTopicARNHasBeenSet =
true; m_snsTopicARN = std::forward<SnsTopicARNT>(value); }
93 template<
typename SnsTopicARNT = Aws::String>
115 inline void SetIsMultiRegionTrail(
bool value) { m_isMultiRegionTrailHasBeenSet =
true; m_isMultiRegionTrail = value; }
125 template<
typename HomeRegionT = Aws::String>
126 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet =
true; m_homeRegion = std::forward<HomeRegionT>(value); }
127 template<
typename HomeRegionT = Aws::String>
139 template<
typename TrailARNT = Aws::String>
140 void SetTrailARN(TrailARNT&& value) { m_trailARNHasBeenSet =
true; m_trailARN = std::forward<TrailARNT>(value); }
141 template<
typename TrailARNT = Aws::String>
162 template<
typename CloudWatchLogsLogGroupArnT = Aws::String>
163 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet =
true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
164 template<
typename CloudWatchLogsLogGroupArnT = Aws::String>
175 template<
typename CloudWatchLogsRoleArnT = Aws::String>
176 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet =
true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
177 template<
typename CloudWatchLogsRoleArnT = Aws::String>
190 template<
typename KmsKeyIdT = Aws::String>
191 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
192 template<
typename KmsKeyIdT = Aws::String>
213 inline void SetHasInsightSelectors(
bool value) { m_hasInsightSelectorsHasBeenSet =
true; m_hasInsightSelectors = value; }
223 inline void SetIsOrganizationTrail(
bool value) { m_isOrganizationTrailHasBeenSet =
true; m_isOrganizationTrail = value; }
229 bool m_nameHasBeenSet =
false;
232 bool m_s3BucketNameHasBeenSet =
false;
235 bool m_s3KeyPrefixHasBeenSet =
false;
238 bool m_snsTopicARNHasBeenSet =
false;
240 bool m_includeGlobalServiceEvents{
false};
241 bool m_includeGlobalServiceEventsHasBeenSet =
false;
243 bool m_isMultiRegionTrail{
false};
244 bool m_isMultiRegionTrailHasBeenSet =
false;
247 bool m_homeRegionHasBeenSet =
false;
250 bool m_trailARNHasBeenSet =
false;
252 bool m_logFileValidationEnabled{
false};
253 bool m_logFileValidationEnabledHasBeenSet =
false;
256 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
259 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
262 bool m_kmsKeyIdHasBeenSet =
false;
264 bool m_hasCustomEventSelectors{
false};
265 bool m_hasCustomEventSelectorsHasBeenSet =
false;
267 bool m_hasInsightSelectors{
false};
268 bool m_hasInsightSelectorsHasBeenSet =
false;
270 bool m_isOrganizationTrail{
false};
271 bool m_isOrganizationTrailHasBeenSet =
false;
void SetS3BucketName(S3BucketNameT &&value)
void SetIsMultiRegionTrail(bool value)
bool HasCustomEventSelectorsHasBeenSet() const
Trail & WithIsMultiRegionTrail(bool value)
bool CloudWatchLogsLogGroupArnHasBeenSet() const
const Aws::String & GetHomeRegion() const
Trail & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
void SetHomeRegion(HomeRegionT &&value)
bool GetIsOrganizationTrail() const
Trail & WithS3BucketName(S3BucketNameT &&value)
const Aws::String & GetName() const
bool HomeRegionHasBeenSet() const
void SetIsOrganizationTrail(bool value)
void SetName(NameT &&value)
Trail & WithHasInsightSelectors(bool value)
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_CLOUDTRAIL_API Trail()=default
const Aws::String & GetKmsKeyId() const
AWS_CLOUDTRAIL_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
bool KmsKeyIdHasBeenSet() const
bool GetHasCustomEventSelectors() const
bool IncludeGlobalServiceEventsHasBeenSet() const
const Aws::String & GetTrailARN() const
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Trail & WithLogFileValidationEnabled(bool value)
Trail & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
const Aws::String & GetSnsTopicARN() const
bool HasInsightSelectorsHasBeenSet() const
void SetHasCustomEventSelectors(bool value)
Trail & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
bool GetHasInsightSelectors() const
bool GetLogFileValidationEnabled() const
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
void SetS3KeyPrefix(S3KeyPrefixT &&value)
void SetLogFileValidationEnabled(bool value)
Trail & WithIncludeGlobalServiceEvents(bool value)
bool LogFileValidationEnabledHasBeenSet() const
bool NameHasBeenSet() const
Trail & WithIsOrganizationTrail(bool value)
bool S3KeyPrefixHasBeenSet() const
Trail & WithHasCustomEventSelectors(bool value)
void SetTrailARN(TrailARNT &&value)
void SetHasInsightSelectors(bool value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool SnsTopicARNHasBeenSet() const
Trail & WithHomeRegion(HomeRegionT &&value)
bool IsMultiRegionTrailHasBeenSet() const
const Aws::String & GetS3KeyPrefix() const
Trail & WithS3KeyPrefix(S3KeyPrefixT &&value)
void SetSnsTopicARN(SnsTopicARNT &&value)
Trail & WithSnsTopicARN(SnsTopicARNT &&value)
bool S3BucketNameHasBeenSet() const
bool GetIncludeGlobalServiceEvents() const
const Aws::String & GetS3BucketName() const
void SetIncludeGlobalServiceEvents(bool value)
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
bool CloudWatchLogsRoleArnHasBeenSet() const
bool IsOrganizationTrailHasBeenSet() const
bool GetIsMultiRegionTrail() const
bool TrailARNHasBeenSet() const
Trail & WithTrailARN(TrailARNT &&value)
Trail & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue