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>
132 m_includeGlobalServiceEventsHasBeenSet =
true;
133 m_includeGlobalServiceEvents = value;
151 m_isMultiRegionTrailHasBeenSet =
true;
152 m_isMultiRegionTrail = value;
175 m_enableLogFileValidationHasBeenSet =
true;
176 m_enableLogFileValidation = value;
193 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
195 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
196 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
198 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
212 template <
typename CloudWatchLogsRoleArnT = Aws::String>
214 m_cloudWatchLogsRoleArnHasBeenSet =
true;
215 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
217 template <
typename CloudWatchLogsRoleArnT = Aws::String>
242 template <
typename KmsKeyIdT = Aws::String>
244 m_kmsKeyIdHasBeenSet =
true;
245 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
247 template <
typename KmsKeyIdT = Aws::String>
265 m_isOrganizationTrailHasBeenSet =
true;
266 m_isOrganizationTrail = value;
278 template <
typename TagsListT = Aws::Vector<Tag>>
280 m_tagsListHasBeenSet =
true;
281 m_tagsList = std::forward<TagsListT>(value);
283 template <
typename TagsListT = Aws::Vector<Tag>>
288 template <
typename TagsListT = Tag>
290 m_tagsListHasBeenSet =
true;
291 m_tagsList.emplace_back(std::forward<TagsListT>(value));
304 bool m_includeGlobalServiceEvents{
false};
306 bool m_isMultiRegionTrail{
false};
308 bool m_enableLogFileValidation{
false};
316 bool m_isOrganizationTrail{
false};
319 bool m_nameHasBeenSet =
false;
320 bool m_s3BucketNameHasBeenSet =
false;
321 bool m_s3KeyPrefixHasBeenSet =
false;
322 bool m_snsTopicNameHasBeenSet =
false;
323 bool m_includeGlobalServiceEventsHasBeenSet =
false;
324 bool m_isMultiRegionTrailHasBeenSet =
false;
325 bool m_enableLogFileValidationHasBeenSet =
false;
326 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
327 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
328 bool m_kmsKeyIdHasBeenSet =
false;
329 bool m_isOrganizationTrailHasBeenSet =
false;
330 bool m_tagsListHasBeenSet =
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)
const Aws::String & GetS3KeyPrefix() const
AWS_CLOUDTRAIL_API CreateTrailRequest()=default
void SetKmsKeyId(KmsKeyIdT &&value)
CreateTrailRequest & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailRequest & WithKmsKeyId(KmsKeyIdT &&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
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