7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
14template <
typename RESULT_TYPE>
15class AmazonWebServiceResult;
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));
59 template <
typename S3BucketNameT = Aws::String>
61 m_s3BucketNameHasBeenSet =
true;
62 m_s3BucketName = std::forward<S3BucketNameT>(value);
64 template <
typename S3BucketNameT = Aws::String>
79 template <
typename S3KeyPrefixT = Aws::String>
81 m_s3KeyPrefixHasBeenSet =
true;
82 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
84 template <
typename S3KeyPrefixT = Aws::String>
98 template <
typename SnsTopicARNT = Aws::String>
100 m_snsTopicARNHasBeenSet =
true;
101 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
103 template <
typename SnsTopicARNT = Aws::String>
119 m_includeGlobalServiceEventsHasBeenSet =
true;
120 m_includeGlobalServiceEvents = value;
134 m_isMultiRegionTrailHasBeenSet =
true;
135 m_isMultiRegionTrail = value;
150 template <
typename TrailARNT = Aws::String>
152 m_trailARNHasBeenSet =
true;
153 m_trailARN = std::forward<TrailARNT>(value);
155 template <
typename TrailARNT = Aws::String>
168 m_logFileValidationEnabledHasBeenSet =
true;
169 m_logFileValidationEnabled = value;
183 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
185 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
186 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
188 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
201 template <
typename CloudWatchLogsRoleArnT = Aws::String>
203 m_cloudWatchLogsRoleArnHasBeenSet =
true;
204 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
206 template <
typename CloudWatchLogsRoleArnT = Aws::String>
221 template <
typename KmsKeyIdT = Aws::String>
223 m_kmsKeyIdHasBeenSet =
true;
224 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
226 template <
typename KmsKeyIdT = Aws::String>
239 m_isOrganizationTrailHasBeenSet =
true;
240 m_isOrganizationTrail = value;
254 m_recursiveLoggingHasBeenSet =
true;
255 m_recursiveLogging = value;
266 template <
typename RequestIdT = Aws::String>
268 m_requestIdHasBeenSet =
true;
269 m_requestId = std::forward<RequestIdT>(value);
271 template <
typename RequestIdT = Aws::String>
288 bool m_includeGlobalServiceEvents{
false};
290 bool m_isMultiRegionTrail{
false};
294 bool m_logFileValidationEnabled{
false};
302 bool m_isOrganizationTrail{
false};
304 bool m_recursiveLogging{
false};
308 bool m_nameHasBeenSet =
false;
309 bool m_s3BucketNameHasBeenSet =
false;
310 bool m_s3KeyPrefixHasBeenSet =
false;
311 bool m_snsTopicARNHasBeenSet =
false;
312 bool m_includeGlobalServiceEventsHasBeenSet =
false;
313 bool m_isMultiRegionTrailHasBeenSet =
false;
314 bool m_trailARNHasBeenSet =
false;
315 bool m_logFileValidationEnabledHasBeenSet =
false;
316 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
317 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
318 bool m_kmsKeyIdHasBeenSet =
false;
319 bool m_isOrganizationTrailHasBeenSet =
false;
320 bool m_recursiveLoggingHasBeenSet =
false;
321 bool m_requestIdHasBeenSet =
false;
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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 SetRecursiveLogging(bool value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailResult & WithRecursiveLogging(bool 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)
bool GetRecursiveLogging() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue