7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/cloudtrail/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
51 template <
typename NameT = Aws::String>
53 m_nameHasBeenSet =
true;
54 m_name = std::forward<NameT>(value);
56 template <
typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
72 template <
typename S3BucketNameT = Aws::String>
74 m_s3BucketNameHasBeenSet =
true;
75 m_s3BucketName = std::forward<S3BucketNameT>(value);
77 template <
typename S3BucketNameT = Aws::String>
93 template <
typename S3KeyPrefixT = Aws::String>
95 m_s3KeyPrefixHasBeenSet =
true;
96 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
98 template <
typename S3KeyPrefixT = Aws::String>
112 template <
typename SnsTopicNameT = Aws::String>
114 m_snsTopicNameHasBeenSet =
true;
115 m_snsTopicName = std::forward<SnsTopicNameT>(value);
117 template <
typename SnsTopicNameT = Aws::String>
134 m_includeGlobalServiceEventsHasBeenSet =
true;
135 m_includeGlobalServiceEvents = value;
153 m_isMultiRegionTrailHasBeenSet =
true;
154 m_isMultiRegionTrail = value;
177 m_enableLogFileValidationHasBeenSet =
true;
178 m_enableLogFileValidation = value;
195 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
197 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
198 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
200 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
214 template <
typename CloudWatchLogsRoleArnT = Aws::String>
216 m_cloudWatchLogsRoleArnHasBeenSet =
true;
217 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
219 template <
typename CloudWatchLogsRoleArnT = Aws::String>
244 template <
typename KmsKeyIdT = Aws::String>
246 m_kmsKeyIdHasBeenSet =
true;
247 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
249 template <
typename KmsKeyIdT = Aws::String>
267 m_isOrganizationTrailHasBeenSet =
true;
268 m_isOrganizationTrail = value;
280 template <
typename TagsListT = Aws::Vector<Tag>>
282 m_tagsListHasBeenSet =
true;
283 m_tagsList = std::forward<TagsListT>(value);
285 template <
typename TagsListT = Aws::Vector<Tag>>
290 template <
typename TagsListT = Tag>
292 m_tagsListHasBeenSet =
true;
293 m_tagsList.emplace_back(std::forward<TagsListT>(value));
309 m_recursiveLoggingHasBeenSet =
true;
310 m_recursiveLogging = value;
326 bool m_includeGlobalServiceEvents{
false};
328 bool m_isMultiRegionTrail{
false};
330 bool m_enableLogFileValidation{
false};
338 bool m_isOrganizationTrail{
false};
342 bool m_recursiveLogging{
false};
343 bool m_nameHasBeenSet =
false;
344 bool m_s3BucketNameHasBeenSet =
false;
345 bool m_s3KeyPrefixHasBeenSet =
false;
346 bool m_snsTopicNameHasBeenSet =
false;
347 bool m_includeGlobalServiceEventsHasBeenSet =
false;
348 bool m_isMultiRegionTrailHasBeenSet =
false;
349 bool m_enableLogFileValidationHasBeenSet =
false;
350 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
351 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
352 bool m_kmsKeyIdHasBeenSet =
false;
353 bool m_isOrganizationTrailHasBeenSet =
false;
354 bool m_tagsListHasBeenSet =
false;
355 bool m_recursiveLoggingHasBeenSet =
false;
CreateTrailRequest & WithEnableLogFileValidation(bool value)
bool SnsTopicNameHasBeenSet() const
bool GetIsOrganizationTrail() const
bool CloudWatchLogsLogGroupArnHasBeenSet() const
bool IsOrganizationTrailHasBeenSet() const
const Aws::String & GetKmsKeyId() const
bool GetIsMultiRegionTrail() const
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool S3KeyPrefixHasBeenSet() const
CreateTrailRequest & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
bool S3BucketNameHasBeenSet() const
void SetTagsList(TagsListT &&value)
CreateTrailRequest & WithS3BucketName(S3BucketNameT &&value)
void SetIsMultiRegionTrail(bool value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailRequest & WithTagsList(TagsListT &&value)
CreateTrailRequest & WithSnsTopicName(SnsTopicNameT &&value)
CreateTrailRequest & AddTagsList(TagsListT &&value)
const Aws::Vector< Tag > & GetTagsList() const
CreateTrailRequest & WithIsOrganizationTrail(bool value)
void SetS3BucketName(S3BucketNameT &&value)
const Aws::String & GetName() const
bool CloudWatchLogsRoleArnHasBeenSet() const
void SetEnableLogFileValidation(bool value)
CreateTrailRequest & WithIncludeGlobalServiceEvents(bool value)
CreateTrailRequest & WithS3KeyPrefix(S3KeyPrefixT &&value)
bool KmsKeyIdHasBeenSet() const
bool GetIncludeGlobalServiceEvents() const
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
void SetIsOrganizationTrail(bool value)
bool NameHasBeenSet() const
bool EnableLogFileValidationHasBeenSet() const
void SetSnsTopicName(SnsTopicNameT &&value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
bool GetEnableLogFileValidation() const
CreateTrailRequest & WithIsMultiRegionTrail(bool value)
bool TagsListHasBeenSet() const
const Aws::String & GetCloudWatchLogsRoleArn() const
void SetS3KeyPrefix(S3KeyPrefixT &&value)
bool RecursiveLoggingHasBeenSet() const
const Aws::String & GetS3KeyPrefix() const
AWS_CLOUDTRAIL_API CreateTrailRequest()=default
void SetKmsKeyId(KmsKeyIdT &&value)
void SetRecursiveLogging(bool value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailRequest & WithRecursiveLogging(bool value)
bool IncludeGlobalServiceEventsHasBeenSet() const
CreateTrailRequest & WithName(NameT &&value)
const Aws::String & GetCloudWatchLogsLogGroupArn() const
void SetIncludeGlobalServiceEvents(bool value)
bool IsMultiRegionTrailHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetName(NameT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetSnsTopicName() const
bool GetRecursiveLogging() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector