7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/Tag.h>
55 template<
typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
57 template<
typename NameT = Aws::String>
70 template<
typename S3BucketNameT = Aws::String>
71 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet =
true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
72 template<
typename S3BucketNameT = Aws::String>
85 template<
typename S3KeyPrefixT = Aws::String>
86 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet =
true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
87 template<
typename S3KeyPrefixT = Aws::String>
98 template<
typename SnsTopicNameT = Aws::String>
99 void SetSnsTopicName(SnsTopicNameT&& value) { m_snsTopicNameHasBeenSet =
true; m_snsTopicName = std::forward<SnsTopicNameT>(value); }
100 template<
typename SnsTopicNameT = Aws::String>
124 inline void SetIsMultiRegionTrail(
bool value) { m_isMultiRegionTrailHasBeenSet =
true; m_isMultiRegionTrail = value; }
155 template<
typename CloudWatchLogsLogGroupArnT = Aws::String>
156 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet =
true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
157 template<
typename CloudWatchLogsLogGroupArnT = Aws::String>
168 template<
typename CloudWatchLogsRoleArnT = Aws::String>
169 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet =
true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
170 template<
typename CloudWatchLogsRoleArnT = Aws::String>
192 template<
typename KmsKeyIdT = Aws::String>
193 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
194 template<
typename KmsKeyIdT = Aws::String>
208 inline void SetIsOrganizationTrail(
bool value) { m_isOrganizationTrailHasBeenSet =
true; m_isOrganizationTrail = value; }
216 template<
typename TagsListT = Aws::Vector<Tag>>
217 void SetTagsList(TagsListT&& value) { m_tagsListHasBeenSet =
true; m_tagsList = std::forward<TagsListT>(value); }
218 template<
typename TagsListT = Aws::Vector<Tag>>
220 template<
typename TagsListT = Tag>
226 bool m_nameHasBeenSet =
false;
229 bool m_s3BucketNameHasBeenSet =
false;
232 bool m_s3KeyPrefixHasBeenSet =
false;
235 bool m_snsTopicNameHasBeenSet =
false;
237 bool m_includeGlobalServiceEvents{
false};
238 bool m_includeGlobalServiceEventsHasBeenSet =
false;
240 bool m_isMultiRegionTrail{
false};
241 bool m_isMultiRegionTrailHasBeenSet =
false;
243 bool m_enableLogFileValidation{
false};
244 bool m_enableLogFileValidationHasBeenSet =
false;
247 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
250 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
253 bool m_kmsKeyIdHasBeenSet =
false;
255 bool m_isOrganizationTrail{
false};
256 bool m_isOrganizationTrailHasBeenSet =
false;
259 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