7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
13template <
typename RESULT_TYPE>
14class AmazonWebServiceResult;
40 template <
typename NameT = Aws::String>
42 m_nameHasBeenSet =
true;
43 m_name = std::forward<NameT>(value);
45 template <
typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
58 template <
typename S3BucketNameT = Aws::String>
60 m_s3BucketNameHasBeenSet =
true;
61 m_s3BucketName = std::forward<S3BucketNameT>(value);
63 template <
typename S3BucketNameT = Aws::String>
78 template <
typename S3KeyPrefixT = Aws::String>
80 m_s3KeyPrefixHasBeenSet =
true;
81 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
83 template <
typename S3KeyPrefixT = Aws::String>
97 template <
typename SnsTopicARNT = Aws::String>
99 m_snsTopicARNHasBeenSet =
true;
100 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
102 template <
typename SnsTopicARNT = Aws::String>
116 m_includeGlobalServiceEventsHasBeenSet =
true;
117 m_includeGlobalServiceEvents = value;
131 m_isMultiRegionTrailHasBeenSet =
true;
132 m_isMultiRegionTrail = value;
147 template <
typename TrailARNT = Aws::String>
149 m_trailARNHasBeenSet =
true;
150 m_trailARN = std::forward<TrailARNT>(value);
152 template <
typename TrailARNT = Aws::String>
165 m_logFileValidationEnabledHasBeenSet =
true;
166 m_logFileValidationEnabled = value;
180 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
182 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
183 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
185 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
198 template <
typename CloudWatchLogsRoleArnT = Aws::String>
200 m_cloudWatchLogsRoleArnHasBeenSet =
true;
201 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
203 template <
typename CloudWatchLogsRoleArnT = Aws::String>
218 template <
typename KmsKeyIdT = Aws::String>
220 m_kmsKeyIdHasBeenSet =
true;
221 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
223 template <
typename KmsKeyIdT = Aws::String>
236 m_isOrganizationTrailHasBeenSet =
true;
237 m_isOrganizationTrail = value;
248 template <
typename RequestIdT = Aws::String>
250 m_requestIdHasBeenSet =
true;
251 m_requestId = std::forward<RequestIdT>(value);
253 template <
typename RequestIdT = Aws::String>
268 bool m_includeGlobalServiceEvents{
false};
270 bool m_isMultiRegionTrail{
false};
274 bool m_logFileValidationEnabled{
false};
282 bool m_isOrganizationTrail{
false};
285 bool m_nameHasBeenSet =
false;
286 bool m_s3BucketNameHasBeenSet =
false;
287 bool m_s3KeyPrefixHasBeenSet =
false;
288 bool m_snsTopicARNHasBeenSet =
false;
289 bool m_includeGlobalServiceEventsHasBeenSet =
false;
290 bool m_isMultiRegionTrailHasBeenSet =
false;
291 bool m_trailARNHasBeenSet =
false;
292 bool m_logFileValidationEnabledHasBeenSet =
false;
293 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
294 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
295 bool m_kmsKeyIdHasBeenSet =
false;
296 bool m_isOrganizationTrailHasBeenSet =
false;
297 bool m_requestIdHasBeenSet =
false;
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
CreateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
void SetName(NameT &&value)
const Aws::String & GetTrailARN() const
CreateTrailResult & WithLogFileValidationEnabled(bool value)
const Aws::String & GetRequestId() const
const Aws::String & GetS3KeyPrefix() const
AWS_CLOUDTRAIL_API CreateTrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API CreateTrailResult()=default
CreateTrailResult & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
void SetLogFileValidationEnabled(bool value)
void SetTrailARN(TrailARNT &&value)
void SetIncludeGlobalServiceEvents(bool value)
const Aws::String & GetKmsKeyId() const
void SetS3BucketName(S3BucketNameT &&value)
void SetS3KeyPrefix(S3KeyPrefixT &&value)
void SetSnsTopicARN(SnsTopicARNT &&value)
void SetRequestId(RequestIdT &&value)
void SetIsOrganizationTrail(bool value)
CreateTrailResult & WithRequestId(RequestIdT &&value)
bool GetIsMultiRegionTrail() const
bool GetIsOrganizationTrail() const
CreateTrailResult & WithS3BucketName(S3BucketNameT &&value)
const Aws::String & GetName() const
CreateTrailResult & WithIsMultiRegionTrail(bool value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
CreateTrailResult & WithName(NameT &&value)
CreateTrailResult & WithIsOrganizationTrail(bool value)
AWS_CLOUDTRAIL_API CreateTrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIsMultiRegionTrail(bool value)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
bool GetIncludeGlobalServiceEvents() const
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetCloudWatchLogsRoleArn() const
bool GetLogFileValidationEnabled() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
void SetKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue