AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateTrailResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
30 public:
31 AWS_CLOUDTRAIL_API CreateTrailResult() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 CreateTrailResult& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
58 template <typename S3BucketNameT = Aws::String>
59 void SetS3BucketName(S3BucketNameT&& value) {
60 m_s3BucketNameHasBeenSet = true;
61 m_s3BucketName = std::forward<S3BucketNameT>(value);
62 }
63 template <typename S3BucketNameT = Aws::String>
64 CreateTrailResult& WithS3BucketName(S3BucketNameT&& value) {
65 SetS3BucketName(std::forward<S3BucketNameT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
78 template <typename S3KeyPrefixT = Aws::String>
79 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
80 m_s3KeyPrefixHasBeenSet = true;
81 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
82 }
83 template <typename S3KeyPrefixT = Aws::String>
84 CreateTrailResult& WithS3KeyPrefix(S3KeyPrefixT&& value) {
85 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
97 template <typename SnsTopicARNT = Aws::String>
98 void SetSnsTopicARN(SnsTopicARNT&& value) {
99 m_snsTopicARNHasBeenSet = true;
100 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
101 }
102 template <typename SnsTopicARNT = Aws::String>
103 CreateTrailResult& WithSnsTopicARN(SnsTopicARNT&& value) {
104 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
105 return *this;
106 }
108
110
114 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
115 inline void SetIncludeGlobalServiceEvents(bool value) {
116 m_includeGlobalServiceEventsHasBeenSet = true;
117 m_includeGlobalServiceEvents = value;
118 }
121 return *this;
122 }
124
126
129 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
130 inline void SetIsMultiRegionTrail(bool value) {
131 m_isMultiRegionTrailHasBeenSet = true;
132 m_isMultiRegionTrail = value;
133 }
136 return *this;
137 }
139
141
146 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
147 template <typename TrailARNT = Aws::String>
148 void SetTrailARN(TrailARNT&& value) {
149 m_trailARNHasBeenSet = true;
150 m_trailARN = std::forward<TrailARNT>(value);
151 }
152 template <typename TrailARNT = Aws::String>
153 CreateTrailResult& WithTrailARN(TrailARNT&& value) {
154 SetTrailARN(std::forward<TrailARNT>(value));
155 return *this;
156 }
158
160
163 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
164 inline void SetLogFileValidationEnabled(bool value) {
165 m_logFileValidationEnabledHasBeenSet = true;
166 m_logFileValidationEnabled = value;
167 }
170 return *this;
171 }
173
175
179 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
180 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
181 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
182 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
183 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
184 }
185 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
186 CreateTrailResult& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
187 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
198 template <typename CloudWatchLogsRoleArnT = Aws::String>
199 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
200 m_cloudWatchLogsRoleArnHasBeenSet = true;
201 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
202 }
203 template <typename CloudWatchLogsRoleArnT = Aws::String>
204 CreateTrailResult& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
205 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
206 return *this;
207 }
209
211
217 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
218 template <typename KmsKeyIdT = Aws::String>
219 void SetKmsKeyId(KmsKeyIdT&& value) {
220 m_kmsKeyIdHasBeenSet = true;
221 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
222 }
223 template <typename KmsKeyIdT = Aws::String>
224 CreateTrailResult& WithKmsKeyId(KmsKeyIdT&& value) {
225 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
226 return *this;
227 }
229
231
234 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
235 inline void SetIsOrganizationTrail(bool value) {
236 m_isOrganizationTrailHasBeenSet = true;
237 m_isOrganizationTrail = value;
238 }
241 return *this;
242 }
244
246
247 inline const Aws::String& GetRequestId() const { return m_requestId; }
248 template <typename RequestIdT = Aws::String>
249 void SetRequestId(RequestIdT&& value) {
250 m_requestIdHasBeenSet = true;
251 m_requestId = std::forward<RequestIdT>(value);
252 }
253 template <typename RequestIdT = Aws::String>
254 CreateTrailResult& WithRequestId(RequestIdT&& value) {
255 SetRequestId(std::forward<RequestIdT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_name;
261
262 Aws::String m_s3BucketName;
263
264 Aws::String m_s3KeyPrefix;
265
266 Aws::String m_snsTopicARN;
267
268 bool m_includeGlobalServiceEvents{false};
269
270 bool m_isMultiRegionTrail{false};
271
272 Aws::String m_trailARN;
273
274 bool m_logFileValidationEnabled{false};
275
276 Aws::String m_cloudWatchLogsLogGroupArn;
277
278 Aws::String m_cloudWatchLogsRoleArn;
279
280 Aws::String m_kmsKeyId;
281
282 bool m_isOrganizationTrail{false};
283
284 Aws::String m_requestId;
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;
298};
299
300} // namespace Model
301} // namespace CloudTrail
302} // namespace Aws
CreateTrailResult & WithKmsKeyId(KmsKeyIdT &&value)
CreateTrailResult & WithIncludeGlobalServiceEvents(bool value)
CreateTrailResult & WithTrailARN(TrailARNT &&value)
CreateTrailResult & WithS3KeyPrefix(S3KeyPrefixT &&value)
CreateTrailResult & WithLogFileValidationEnabled(bool value)
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 SetS3BucketName(S3BucketNameT &&value)
CreateTrailResult & WithRequestId(RequestIdT &&value)
CreateTrailResult & WithS3BucketName(S3BucketNameT &&value)
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)
CreateTrailResult & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
CreateTrailResult & WithSnsTopicARN(SnsTopicARNT &&value)
const Aws::String & GetS3BucketName() const
const Aws::String & GetSnsTopicARN() const
const Aws::String & GetCloudWatchLogsRoleArn() const
const Aws::String & GetCloudWatchLogsLogGroupArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue