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>
123 m_includeGlobalServiceEventsHasBeenSet =
true;
124 m_includeGlobalServiceEvents = value;
140 m_isMultiRegionTrailHasBeenSet =
true;
141 m_isMultiRegionTrail = value;
155 template <
typename HomeRegionT = Aws::String>
157 m_homeRegionHasBeenSet =
true;
158 m_homeRegion = std::forward<HomeRegionT>(value);
160 template <
typename HomeRegionT = Aws::String>
175 template <
typename TrailARNT = Aws::String>
177 m_trailARNHasBeenSet =
true;
178 m_trailARN = std::forward<TrailARNT>(value);
180 template <
typename TrailARNT = Aws::String>
194 m_logFileValidationEnabledHasBeenSet =
true;
195 m_logFileValidationEnabled = value;
210 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
212 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
213 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
215 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
229 template <
typename CloudWatchLogsRoleArnT = Aws::String>
231 m_cloudWatchLogsRoleArnHasBeenSet =
true;
232 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
234 template <
typename CloudWatchLogsRoleArnT = Aws::String>
251 template <
typename KmsKeyIdT = Aws::String>
253 m_kmsKeyIdHasBeenSet =
true;
254 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
256 template <
typename KmsKeyIdT = Aws::String>
270 m_hasCustomEventSelectorsHasBeenSet =
true;
271 m_hasCustomEventSelectors = value;
287 m_hasInsightSelectorsHasBeenSet =
true;
288 m_hasInsightSelectors = value;
303 m_isOrganizationTrailHasBeenSet =
true;
304 m_isOrganizationTrail = value;
320 bool m_includeGlobalServiceEvents{
false};
322 bool m_isMultiRegionTrail{
false};
328 bool m_logFileValidationEnabled{
false};
336 bool m_hasCustomEventSelectors{
false};
338 bool m_hasInsightSelectors{
false};
340 bool m_isOrganizationTrail{
false};
341 bool m_nameHasBeenSet =
false;
342 bool m_s3BucketNameHasBeenSet =
false;
343 bool m_s3KeyPrefixHasBeenSet =
false;
344 bool m_snsTopicARNHasBeenSet =
false;
345 bool m_includeGlobalServiceEventsHasBeenSet =
false;
346 bool m_isMultiRegionTrailHasBeenSet =
false;
347 bool m_homeRegionHasBeenSet =
false;
348 bool m_trailARNHasBeenSet =
false;
349 bool m_logFileValidationEnabledHasBeenSet =
false;
350 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
351 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
352 bool m_kmsKeyIdHasBeenSet =
false;
353 bool m_hasCustomEventSelectorsHasBeenSet =
false;
354 bool m_hasInsightSelectorsHasBeenSet =
false;
355 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