AWS SDK for C++

AWS SDK for C++ Version 1.11.889

Loading...
Searching...
No Matches
Trail.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 {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudTrail {
20namespace Model {
21
27class Trail {
28 public:
29 AWS_CLOUDTRAIL_API Trail() = default;
30 AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CLOUDTRAIL_API Trail& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 Trail& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
61 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
62 template <typename S3BucketNameT = Aws::String>
63 void SetS3BucketName(S3BucketNameT&& value) {
64 m_s3BucketNameHasBeenSet = true;
65 m_s3BucketName = std::forward<S3BucketNameT>(value);
66 }
67 template <typename S3BucketNameT = Aws::String>
68 Trail& WithS3BucketName(S3BucketNameT&& value) {
69 SetS3BucketName(std::forward<S3BucketNameT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
82 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
83 template <typename S3KeyPrefixT = Aws::String>
84 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
85 m_s3KeyPrefixHasBeenSet = true;
86 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
87 }
88 template <typename S3KeyPrefixT = Aws::String>
89 Trail& WithS3KeyPrefix(S3KeyPrefixT&& value) {
90 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
102 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
103 template <typename SnsTopicARNT = Aws::String>
104 void SetSnsTopicARN(SnsTopicARNT&& value) {
105 m_snsTopicARNHasBeenSet = true;
106 m_snsTopicARN = std::forward<SnsTopicARNT>(value);
107 }
108 template <typename SnsTopicARNT = Aws::String>
109 Trail& WithSnsTopicARN(SnsTopicARNT&& value) {
110 SetSnsTopicARN(std::forward<SnsTopicARNT>(value));
111 return *this;
112 }
114
116
123 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
124 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
125 inline void SetIncludeGlobalServiceEvents(bool value) {
126 m_includeGlobalServiceEventsHasBeenSet = true;
127 m_includeGlobalServiceEvents = value;
128 }
131 return *this;
132 }
134
136
140 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
141 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
142 inline void SetIsMultiRegionTrail(bool value) {
143 m_isMultiRegionTrailHasBeenSet = true;
144 m_isMultiRegionTrail = value;
145 }
146 inline Trail& WithIsMultiRegionTrail(bool value) {
148 return *this;
149 }
151
153
156 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
157 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
158 template <typename HomeRegionT = Aws::String>
159 void SetHomeRegion(HomeRegionT&& value) {
160 m_homeRegionHasBeenSet = true;
161 m_homeRegion = std::forward<HomeRegionT>(value);
162 }
163 template <typename HomeRegionT = Aws::String>
164 Trail& WithHomeRegion(HomeRegionT&& value) {
165 SetHomeRegion(std::forward<HomeRegionT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
177 inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; }
178 template <typename TrailARNT = Aws::String>
179 void SetTrailARN(TrailARNT&& value) {
180 m_trailARNHasBeenSet = true;
181 m_trailARN = std::forward<TrailARNT>(value);
182 }
183 template <typename TrailARNT = Aws::String>
184 Trail& WithTrailARN(TrailARNT&& value) {
185 SetTrailARN(std::forward<TrailARNT>(value));
186 return *this;
187 }
189
191
194 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
195 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
196 inline void SetLogFileValidationEnabled(bool value) {
197 m_logFileValidationEnabledHasBeenSet = true;
198 m_logFileValidationEnabled = value;
199 }
202 return *this;
203 }
205
207
211 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
212 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
213 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
214 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
215 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
216 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
217 }
218 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
219 Trail& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
220 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
221 return *this;
222 }
224
226
230 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
231 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
232 template <typename CloudWatchLogsRoleArnT = Aws::String>
233 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
234 m_cloudWatchLogsRoleArnHasBeenSet = true;
235 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
236 }
237 template <typename CloudWatchLogsRoleArnT = Aws::String>
238 Trail& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
239 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
240 return *this;
241 }
243
245
252 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
253 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
254 template <typename KmsKeyIdT = Aws::String>
255 void SetKmsKeyId(KmsKeyIdT&& value) {
256 m_kmsKeyIdHasBeenSet = true;
257 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
258 }
259 template <typename KmsKeyIdT = Aws::String>
260 Trail& WithKmsKeyId(KmsKeyIdT&& value) {
261 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
262 return *this;
263 }
265
267
270 inline bool GetHasCustomEventSelectors() const { return m_hasCustomEventSelectors; }
271 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
272 inline void SetHasCustomEventSelectors(bool value) {
273 m_hasCustomEventSelectorsHasBeenSet = true;
274 m_hasCustomEventSelectors = value;
275 }
276 inline Trail& WithHasCustomEventSelectors(bool value) {
278 return *this;
279 }
281
283
287 inline bool GetHasInsightSelectors() const { return m_hasInsightSelectors; }
288 inline bool HasInsightSelectorsHasBeenSet() const { return m_hasInsightSelectorsHasBeenSet; }
289 inline void SetHasInsightSelectors(bool value) {
290 m_hasInsightSelectorsHasBeenSet = true;
291 m_hasInsightSelectors = value;
292 }
293 inline Trail& WithHasInsightSelectors(bool value) {
295 return *this;
296 }
298
300
303 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
304 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
305 inline void SetIsOrganizationTrail(bool value) {
306 m_isOrganizationTrailHasBeenSet = true;
307 m_isOrganizationTrail = value;
308 }
309 inline Trail& WithIsOrganizationTrail(bool value) {
311 return *this;
312 }
314
316
323 inline bool GetRecursiveLogging() const { return m_recursiveLogging; }
324 inline bool RecursiveLoggingHasBeenSet() const { return m_recursiveLoggingHasBeenSet; }
325 inline void SetRecursiveLogging(bool value) {
326 m_recursiveLoggingHasBeenSet = true;
327 m_recursiveLogging = value;
328 }
329 inline Trail& WithRecursiveLogging(bool value) {
330 SetRecursiveLogging(value);
331 return *this;
332 }
334 private:
335 Aws::String m_name;
336
337 Aws::String m_s3BucketName;
338
339 Aws::String m_s3KeyPrefix;
340
341 Aws::String m_snsTopicARN;
342
343 bool m_includeGlobalServiceEvents{false};
344
345 bool m_isMultiRegionTrail{false};
346
347 Aws::String m_homeRegion;
348
349 Aws::String m_trailARN;
350
351 bool m_logFileValidationEnabled{false};
352
353 Aws::String m_cloudWatchLogsLogGroupArn;
354
355 Aws::String m_cloudWatchLogsRoleArn;
356
357 Aws::String m_kmsKeyId;
358
359 bool m_hasCustomEventSelectors{false};
360
361 bool m_hasInsightSelectors{false};
362
363 bool m_isOrganizationTrail{false};
364
365 bool m_recursiveLogging{false};
366 bool m_nameHasBeenSet = false;
367 bool m_s3BucketNameHasBeenSet = false;
368 bool m_s3KeyPrefixHasBeenSet = false;
369 bool m_snsTopicARNHasBeenSet = false;
370 bool m_includeGlobalServiceEventsHasBeenSet = false;
371 bool m_isMultiRegionTrailHasBeenSet = false;
372 bool m_homeRegionHasBeenSet = false;
373 bool m_trailARNHasBeenSet = false;
374 bool m_logFileValidationEnabledHasBeenSet = false;
375 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
376 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
377 bool m_kmsKeyIdHasBeenSet = false;
378 bool m_hasCustomEventSelectorsHasBeenSet = false;
379 bool m_hasInsightSelectorsHasBeenSet = false;
380 bool m_isOrganizationTrailHasBeenSet = false;
381 bool m_recursiveLoggingHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace CloudTrail
386} // namespace Aws
void SetS3BucketName(S3BucketNameT &&value)
Definition Trail.h:63
void SetIsMultiRegionTrail(bool value)
Definition Trail.h:142
bool HasCustomEventSelectorsHasBeenSet() const
Definition Trail.h:271
Trail & WithIsMultiRegionTrail(bool value)
Definition Trail.h:146
bool CloudWatchLogsLogGroupArnHasBeenSet() const
Definition Trail.h:212
const Aws::String & GetHomeRegion() const
Definition Trail.h:156
Trail & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:219
void SetHomeRegion(HomeRegionT &&value)
Definition Trail.h:159
bool GetIsOrganizationTrail() const
Definition Trail.h:303
Trail & WithS3BucketName(S3BucketNameT &&value)
Definition Trail.h:68
const Aws::String & GetName() const
Definition Trail.h:39
bool HomeRegionHasBeenSet() const
Definition Trail.h:157
void SetIsOrganizationTrail(bool value)
Definition Trail.h:305
void SetName(NameT &&value)
Definition Trail.h:42
Trail & WithHasInsightSelectors(bool value)
Definition Trail.h:293
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:255
AWS_CLOUDTRAIL_API Trail()=default
const Aws::String & GetKmsKeyId() const
Definition Trail.h:252
AWS_CLOUDTRAIL_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition Trail.h:230
bool KmsKeyIdHasBeenSet() const
Definition Trail.h:253
bool GetHasCustomEventSelectors() const
Definition Trail.h:270
bool IncludeGlobalServiceEventsHasBeenSet() const
Definition Trail.h:124
const Aws::String & GetTrailARN() const
Definition Trail.h:176
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:233
Trail & WithLogFileValidationEnabled(bool value)
Definition Trail.h:200
Trail & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:238
const Aws::String & GetSnsTopicARN() const
Definition Trail.h:101
bool HasInsightSelectorsHasBeenSet() const
Definition Trail.h:288
void SetHasCustomEventSelectors(bool value)
Definition Trail.h:272
Trail & WithKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:260
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition Trail.h:211
bool GetHasInsightSelectors() const
Definition Trail.h:287
bool GetLogFileValidationEnabled() const
Definition Trail.h:194
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:214
void SetRecursiveLogging(bool value)
Definition Trail.h:325
void SetS3KeyPrefix(S3KeyPrefixT &&value)
Definition Trail.h:84
void SetLogFileValidationEnabled(bool value)
Definition Trail.h:196
Trail & WithIncludeGlobalServiceEvents(bool value)
Definition Trail.h:129
bool LogFileValidationEnabledHasBeenSet() const
Definition Trail.h:195
bool NameHasBeenSet() const
Definition Trail.h:40
Trail & WithIsOrganizationTrail(bool value)
Definition Trail.h:309
bool S3KeyPrefixHasBeenSet() const
Definition Trail.h:82
Trail & WithHasCustomEventSelectors(bool value)
Definition Trail.h:276
void SetTrailARN(TrailARNT &&value)
Definition Trail.h:179
void SetHasInsightSelectors(bool value)
Definition Trail.h:289
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool SnsTopicARNHasBeenSet() const
Definition Trail.h:102
Trail & WithHomeRegion(HomeRegionT &&value)
Definition Trail.h:164
bool IsMultiRegionTrailHasBeenSet() const
Definition Trail.h:141
const Aws::String & GetS3KeyPrefix() const
Definition Trail.h:81
Trail & WithS3KeyPrefix(S3KeyPrefixT &&value)
Definition Trail.h:89
void SetSnsTopicARN(SnsTopicARNT &&value)
Definition Trail.h:104
Trail & WithSnsTopicARN(SnsTopicARNT &&value)
Definition Trail.h:109
bool S3BucketNameHasBeenSet() const
Definition Trail.h:61
bool GetIncludeGlobalServiceEvents() const
Definition Trail.h:123
bool RecursiveLoggingHasBeenSet() const
Definition Trail.h:324
const Aws::String & GetS3BucketName() const
Definition Trail.h:60
void SetIncludeGlobalServiceEvents(bool value)
Definition Trail.h:125
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
Trail & WithRecursiveLogging(bool value)
Definition Trail.h:329
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition Trail.h:231
bool IsOrganizationTrailHasBeenSet() const
Definition Trail.h:304
bool GetIsMultiRegionTrail() const
Definition Trail.h:140
bool TrailARNHasBeenSet() const
Definition Trail.h:177
Trail & WithTrailARN(TrailARNT &&value)
Definition Trail.h:184
bool GetRecursiveLogging() const
Definition Trail.h:323
Trail & WithName(NameT &&value)
Definition Trail.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue