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>
117 m_includeGlobalServiceEventsHasBeenSet =
true;
118 m_includeGlobalServiceEvents = value;
132 m_isMultiRegionTrailHasBeenSet =
true;
133 m_isMultiRegionTrail = value;
148 template <
typename TrailARNT = Aws::String>
150 m_trailARNHasBeenSet =
true;
151 m_trailARN = std::forward<TrailARNT>(value);
153 template <
typename TrailARNT = Aws::String>
166 m_logFileValidationEnabledHasBeenSet =
true;
167 m_logFileValidationEnabled = value;
181 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
183 m_cloudWatchLogsLogGroupArnHasBeenSet =
true;
184 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
186 template <
typename CloudWatchLogsLogGroupArnT = Aws::String>
199 template <
typename CloudWatchLogsRoleArnT = Aws::String>
201 m_cloudWatchLogsRoleArnHasBeenSet =
true;
202 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
204 template <
typename CloudWatchLogsRoleArnT = Aws::String>
219 template <
typename KmsKeyIdT = Aws::String>
221 m_kmsKeyIdHasBeenSet =
true;
222 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
224 template <
typename KmsKeyIdT = Aws::String>
237 m_isOrganizationTrailHasBeenSet =
true;
238 m_isOrganizationTrail = value;
249 template <
typename RequestIdT = Aws::String>
251 m_requestIdHasBeenSet =
true;
252 m_requestId = std::forward<RequestIdT>(value);
254 template <
typename RequestIdT = Aws::String>
271 bool m_includeGlobalServiceEvents{
false};
273 bool m_isMultiRegionTrail{
false};
277 bool m_logFileValidationEnabled{
false};
285 bool m_isOrganizationTrail{
false};
289 bool m_nameHasBeenSet =
false;
290 bool m_s3BucketNameHasBeenSet =
false;
291 bool m_s3KeyPrefixHasBeenSet =
false;
292 bool m_snsTopicARNHasBeenSet =
false;
293 bool m_includeGlobalServiceEventsHasBeenSet =
false;
294 bool m_isMultiRegionTrailHasBeenSet =
false;
295 bool m_trailARNHasBeenSet =
false;
296 bool m_logFileValidationEnabledHasBeenSet =
false;
297 bool m_cloudWatchLogsLogGroupArnHasBeenSet =
false;
298 bool m_cloudWatchLogsRoleArnHasBeenSet =
false;
299 bool m_kmsKeyIdHasBeenSet =
false;
300 bool m_isOrganizationTrailHasBeenSet =
false;
301 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 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