AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
120 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
121 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
122 inline void SetIncludeGlobalServiceEvents(bool value) {
123 m_includeGlobalServiceEventsHasBeenSet = true;
124 m_includeGlobalServiceEvents = value;
125 }
128 return *this;
129 }
131
133
137 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
138 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
139 inline void SetIsMultiRegionTrail(bool value) {
140 m_isMultiRegionTrailHasBeenSet = true;
141 m_isMultiRegionTrail = value;
142 }
143 inline Trail& WithIsMultiRegionTrail(bool value) {
145 return *this;
146 }
148
150
153 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
154 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
155 template <typename HomeRegionT = Aws::String>
156 void SetHomeRegion(HomeRegionT&& value) {
157 m_homeRegionHasBeenSet = true;
158 m_homeRegion = std::forward<HomeRegionT>(value);
159 }
160 template <typename HomeRegionT = Aws::String>
161 Trail& WithHomeRegion(HomeRegionT&& value) {
162 SetHomeRegion(std::forward<HomeRegionT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
174 inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; }
175 template <typename TrailARNT = Aws::String>
176 void SetTrailARN(TrailARNT&& value) {
177 m_trailARNHasBeenSet = true;
178 m_trailARN = std::forward<TrailARNT>(value);
179 }
180 template <typename TrailARNT = Aws::String>
181 Trail& WithTrailARN(TrailARNT&& value) {
182 SetTrailARN(std::forward<TrailARNT>(value));
183 return *this;
184 }
186
188
191 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
192 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
193 inline void SetLogFileValidationEnabled(bool value) {
194 m_logFileValidationEnabledHasBeenSet = true;
195 m_logFileValidationEnabled = value;
196 }
199 return *this;
200 }
202
204
208 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
209 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
210 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
211 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
212 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
213 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
214 }
215 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
216 Trail& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
217 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
228 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
229 template <typename CloudWatchLogsRoleArnT = Aws::String>
230 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
231 m_cloudWatchLogsRoleArnHasBeenSet = true;
232 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
233 }
234 template <typename CloudWatchLogsRoleArnT = Aws::String>
235 Trail& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
236 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
237 return *this;
238 }
240
242
249 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
250 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
251 template <typename KmsKeyIdT = Aws::String>
252 void SetKmsKeyId(KmsKeyIdT&& value) {
253 m_kmsKeyIdHasBeenSet = true;
254 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
255 }
256 template <typename KmsKeyIdT = Aws::String>
257 Trail& WithKmsKeyId(KmsKeyIdT&& value) {
258 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
259 return *this;
260 }
262
264
267 inline bool GetHasCustomEventSelectors() const { return m_hasCustomEventSelectors; }
268 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
269 inline void SetHasCustomEventSelectors(bool value) {
270 m_hasCustomEventSelectorsHasBeenSet = true;
271 m_hasCustomEventSelectors = value;
272 }
273 inline Trail& WithHasCustomEventSelectors(bool value) {
275 return *this;
276 }
278
280
284 inline bool GetHasInsightSelectors() const { return m_hasInsightSelectors; }
285 inline bool HasInsightSelectorsHasBeenSet() const { return m_hasInsightSelectorsHasBeenSet; }
286 inline void SetHasInsightSelectors(bool value) {
287 m_hasInsightSelectorsHasBeenSet = true;
288 m_hasInsightSelectors = value;
289 }
290 inline Trail& WithHasInsightSelectors(bool value) {
292 return *this;
293 }
295
297
300 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
301 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
302 inline void SetIsOrganizationTrail(bool value) {
303 m_isOrganizationTrailHasBeenSet = true;
304 m_isOrganizationTrail = value;
305 }
306 inline Trail& WithIsOrganizationTrail(bool value) {
308 return *this;
309 }
311 private:
312 Aws::String m_name;
313
314 Aws::String m_s3BucketName;
315
316 Aws::String m_s3KeyPrefix;
317
318 Aws::String m_snsTopicARN;
319
320 bool m_includeGlobalServiceEvents{false};
321
322 bool m_isMultiRegionTrail{false};
323
324 Aws::String m_homeRegion;
325
326 Aws::String m_trailARN;
327
328 bool m_logFileValidationEnabled{false};
329
330 Aws::String m_cloudWatchLogsLogGroupArn;
331
332 Aws::String m_cloudWatchLogsRoleArn;
333
334 Aws::String m_kmsKeyId;
335
336 bool m_hasCustomEventSelectors{false};
337
338 bool m_hasInsightSelectors{false};
339
340 bool m_isOrganizationTrail{false};
341 bool m_nameHasBeenSet = false;
342 bool m_s3BucketNameHasBeenSet = false;
343 bool m_s3KeyPrefixHasBeenSet = false;
344 bool m_snsTopicARNHasBeenSet = false;
345 bool m_includeGlobalServiceEventsHasBeenSet = false;
346 bool m_isMultiRegionTrailHasBeenSet = false;
347 bool m_homeRegionHasBeenSet = false;
348 bool m_trailARNHasBeenSet = false;
349 bool m_logFileValidationEnabledHasBeenSet = false;
350 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
351 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
352 bool m_kmsKeyIdHasBeenSet = false;
353 bool m_hasCustomEventSelectorsHasBeenSet = false;
354 bool m_hasInsightSelectorsHasBeenSet = false;
355 bool m_isOrganizationTrailHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace CloudTrail
360} // namespace Aws
void SetS3BucketName(S3BucketNameT &&value)
Definition Trail.h:63
void SetIsMultiRegionTrail(bool value)
Definition Trail.h:139
bool HasCustomEventSelectorsHasBeenSet() const
Definition Trail.h:268
Trail & WithIsMultiRegionTrail(bool value)
Definition Trail.h:143
bool CloudWatchLogsLogGroupArnHasBeenSet() const
Definition Trail.h:209
const Aws::String & GetHomeRegion() const
Definition Trail.h:153
Trail & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:216
void SetHomeRegion(HomeRegionT &&value)
Definition Trail.h:156
bool GetIsOrganizationTrail() const
Definition Trail.h:300
Trail & WithS3BucketName(S3BucketNameT &&value)
Definition Trail.h:68
const Aws::String & GetName() const
Definition Trail.h:39
bool HomeRegionHasBeenSet() const
Definition Trail.h:154
void SetIsOrganizationTrail(bool value)
Definition Trail.h:302
void SetName(NameT &&value)
Definition Trail.h:42
Trail & WithHasInsightSelectors(bool value)
Definition Trail.h:290
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:252
AWS_CLOUDTRAIL_API Trail()=default
const Aws::String & GetKmsKeyId() const
Definition Trail.h:249
AWS_CLOUDTRAIL_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition Trail.h:227
bool KmsKeyIdHasBeenSet() const
Definition Trail.h:250
bool GetHasCustomEventSelectors() const
Definition Trail.h:267
bool IncludeGlobalServiceEventsHasBeenSet() const
Definition Trail.h:121
const Aws::String & GetTrailARN() const
Definition Trail.h:173
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:230
Trail & WithLogFileValidationEnabled(bool value)
Definition Trail.h:197
Trail & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:235
const Aws::String & GetSnsTopicARN() const
Definition Trail.h:101
bool HasInsightSelectorsHasBeenSet() const
Definition Trail.h:285
void SetHasCustomEventSelectors(bool value)
Definition Trail.h:269
Trail & WithKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:257
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition Trail.h:208
bool GetHasInsightSelectors() const
Definition Trail.h:284
bool GetLogFileValidationEnabled() const
Definition Trail.h:191
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:211
void SetS3KeyPrefix(S3KeyPrefixT &&value)
Definition Trail.h:84
void SetLogFileValidationEnabled(bool value)
Definition Trail.h:193
Trail & WithIncludeGlobalServiceEvents(bool value)
Definition Trail.h:126
bool LogFileValidationEnabledHasBeenSet() const
Definition Trail.h:192
bool NameHasBeenSet() const
Definition Trail.h:40
Trail & WithIsOrganizationTrail(bool value)
Definition Trail.h:306
bool S3KeyPrefixHasBeenSet() const
Definition Trail.h:82
Trail & WithHasCustomEventSelectors(bool value)
Definition Trail.h:273
void SetTrailARN(TrailARNT &&value)
Definition Trail.h:176
void SetHasInsightSelectors(bool value)
Definition Trail.h:286
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool SnsTopicARNHasBeenSet() const
Definition Trail.h:102
Trail & WithHomeRegion(HomeRegionT &&value)
Definition Trail.h:161
bool IsMultiRegionTrailHasBeenSet() const
Definition Trail.h:138
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:120
const Aws::String & GetS3BucketName() const
Definition Trail.h:60
void SetIncludeGlobalServiceEvents(bool value)
Definition Trail.h:122
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition Trail.h:228
bool IsOrganizationTrailHasBeenSet() const
Definition Trail.h:301
bool GetIsMultiRegionTrail() const
Definition Trail.h:137
bool TrailARNHasBeenSet() const
Definition Trail.h:174
Trail & WithTrailARN(TrailARNT &&value)
Definition Trail.h:181
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