7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
29 AWS_CLOUDTRAIL_API
Trail() =
default;
41 template <
typename NameT = Aws::String>
43 m_nameHasBeenSet =
true;
44 m_name = std::forward<NameT>(value);
46 template <
typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
62 template <
typename S3BucketNameT = Aws::String>
64 m_s3BucketNameHasBeenSet =
true;
65 m_s3BucketName = std::forward<S3BucketNameT>(value);
67 template <
typename S3BucketNameT = Aws::String>
83 template <
typename S3KeyPrefixT = Aws::String>
85 m_s3KeyPrefixHasBeenSet =
true;
86 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
88 template <
typename S3KeyPrefixT = Aws::String>
103 template <
typename SnsTopicARNT = Aws::String>
105 m_snsTopicARNHasBeenSet =
true;
106 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
108 template <
typename SnsTopicARNT = Aws::String>
126 m_includeGlobalServiceEventsHasBeenSet =
true;
127 m_includeGlobalServiceEvents = value;
143 m_isMultiRegionTrailHasBeenSet =
true;
144 m_isMultiRegionTrail = value;
158 template <
typename HomeRegionT = Aws::String>
160 m_homeRegionHasBeenSet =
true;
161 m_homeRegion = std::forward<HomeRegionT>(value);
163 template <
typename HomeRegionT = Aws::String>
178 template <
typename TrailARNT = Aws::String>
180 m_trailARNHasBeenSet =
true;
181 m_trailARN = std::forward<TrailARNT>(value);
183 template <
typename TrailARNT = Aws::String>
197 m_logFileValidationEnabledHasBeenSet =
true;
198 m_logFileValidationEnabled = value;
213 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
215 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
216 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
218 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
232 template <
typename CloudWatchLogsRoleArnT = Aws::String>
234 m_cloudWatchLogsRoleArnHasBeenSet =
true;
235 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
237 template <
typename CloudWatchLogsRoleArnT = Aws::String>
254 template <
typename KmsKeyIdT = Aws::String>
256 m_kmsKeyIdHasBeenSet =
true;
257 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
259 template <
typename KmsKeyIdT = Aws::String>
273 m_hasCustomEventSelectorsHasBeenSet =
true;
274 m_hasCustomEventSelectors = value;
290 m_hasInsightSelectorsHasBeenSet =
true;
291 m_hasInsightSelectors = value;
306 m_isOrganizationTrailHasBeenSet =
true;
307 m_isOrganizationTrail = value;
326 m_recursiveLoggingHasBeenSet =
true;
327 m_recursiveLogging = value;
343 bool m_includeGlobalServiceEvents{
false};
345 bool m_isMultiRegionTrail{
false};
351 bool m_logFileValidationEnabled{
false};
359 bool m_hasCustomEventSelectors{
false};
361 bool m_hasInsightSelectors{
false};
363 bool m_isOrganizationTrail{
false};
365 bool m_recursiveLogging{
false};
366 bool m_nameHasBeenSet =
false;
367 bool m_s3BucketNameHasBeenSet =
false;
368 bool m_s3KeyPrefixHasBeenSet =
false;
369 bool m_snsTopicARNHasBeenSet =
false;
370 bool m_includeGlobalServiceEventsHasBeenSet =
false;
371 bool m_isMultiRegionTrailHasBeenSet =
false;
372 bool m_homeRegionHasBeenSet =
false;
373 bool m_trailARNHasBeenSet =
false;
374 bool m_logFileValidationEnabledHasBeenSet =
false;
375 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
376 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
377 bool m_kmsKeyIdHasBeenSet =
false;
378 bool m_hasCustomEventSelectorsHasBeenSet =
false;
379 bool m_hasInsightSelectorsHasBeenSet =
false;
380 bool m_isOrganizationTrailHasBeenSet =
false;
381 bool m_recursiveLoggingHasBeenSet =
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 SetRecursiveLogging(bool 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
bool RecursiveLoggingHasBeenSet() const
const Aws::String & GetS3BucketName() const
void SetIncludeGlobalServiceEvents(bool value)
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
Trail & WithRecursiveLogging(bool value)
bool CloudWatchLogsRoleArnHasBeenSet() const
bool IsOrganizationTrailHasBeenSet() const
bool GetIsMultiRegionTrail() const
bool TrailARNHasBeenSet() const
Trail & WithTrailARN(TrailARNT &&value)
bool GetRecursiveLogging() const
Trail & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue