AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail
22{
23namespace Model
24{
25
31 class Trail
32 {
33 public:
34 AWS_CLOUDTRAIL_API Trail();
35 AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDTRAIL_API Trail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline Trail& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Trail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Trail& WithName(const char* value) { SetName(value); return *this;}
54
56
62 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
63 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
64 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
65 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
66 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
67 inline Trail& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
68 inline Trail& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
69 inline Trail& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
71
73
79 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
80 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
81 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
82 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
83 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
84 inline Trail& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
85 inline Trail& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
86 inline Trail& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
88
90
95 inline const Aws::String& GetSnsTopicARN() const{ return m_snsTopicARN; }
96 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
97 inline void SetSnsTopicARN(const Aws::String& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = value; }
98 inline void SetSnsTopicARN(Aws::String&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::move(value); }
99 inline void SetSnsTopicARN(const char* value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN.assign(value); }
100 inline Trail& WithSnsTopicARN(const Aws::String& value) { SetSnsTopicARN(value); return *this;}
101 inline Trail& WithSnsTopicARN(Aws::String&& value) { SetSnsTopicARN(std::move(value)); return *this;}
102 inline Trail& WithSnsTopicARN(const char* value) { SetSnsTopicARN(value); return *this;}
104
106
110 inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
111 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
112 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
113 inline Trail& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
115
117
121 inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
122 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
123 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
124 inline Trail& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
126
128
131 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
132 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
133 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
134 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
135 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
136 inline Trail& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
137 inline Trail& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
138 inline Trail& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
140
142
147 inline const Aws::String& GetTrailARN() const{ return m_trailARN; }
148 inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; }
149 inline void SetTrailARN(const Aws::String& value) { m_trailARNHasBeenSet = true; m_trailARN = value; }
150 inline void SetTrailARN(Aws::String&& value) { m_trailARNHasBeenSet = true; m_trailARN = std::move(value); }
151 inline void SetTrailARN(const char* value) { m_trailARNHasBeenSet = true; m_trailARN.assign(value); }
152 inline Trail& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;}
153 inline Trail& WithTrailARN(Aws::String&& value) { SetTrailARN(std::move(value)); return *this;}
154 inline Trail& WithTrailARN(const char* value) { SetTrailARN(value); return *this;}
156
158
161 inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; }
162 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
163 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
164 inline Trail& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;}
166
168
172 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
173 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
174 inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
175 inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
176 inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
178 inline Trail& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;}
179 inline Trail& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;}
181
183
187 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
188 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
189 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
190 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
191 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
192 inline Trail& WithCloudWatchLogsRoleArn(const Aws::String& value) { SetCloudWatchLogsRoleArn(value); return *this;}
193 inline Trail& WithCloudWatchLogsRoleArn(Aws::String&& value) { SetCloudWatchLogsRoleArn(std::move(value)); return *this;}
194 inline Trail& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
196
198
204 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
205 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
206 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
207 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
208 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
209 inline Trail& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
210 inline Trail& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
211 inline Trail& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
213
215
218 inline bool GetHasCustomEventSelectors() const{ return m_hasCustomEventSelectors; }
219 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
220 inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; }
221 inline Trail& WithHasCustomEventSelectors(bool value) { SetHasCustomEventSelectors(value); return *this;}
223
225
229 inline bool GetHasInsightSelectors() const{ return m_hasInsightSelectors; }
230 inline bool HasInsightSelectorsHasBeenSet() const { return m_hasInsightSelectorsHasBeenSet; }
231 inline void SetHasInsightSelectors(bool value) { m_hasInsightSelectorsHasBeenSet = true; m_hasInsightSelectors = value; }
232 inline Trail& WithHasInsightSelectors(bool value) { SetHasInsightSelectors(value); return *this;}
234
236
239 inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
240 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
241 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
242 inline Trail& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
244 private:
245
246 Aws::String m_name;
247 bool m_nameHasBeenSet = false;
248
249 Aws::String m_s3BucketName;
250 bool m_s3BucketNameHasBeenSet = false;
251
252 Aws::String m_s3KeyPrefix;
253 bool m_s3KeyPrefixHasBeenSet = false;
254
255 Aws::String m_snsTopicARN;
256 bool m_snsTopicARNHasBeenSet = false;
257
258 bool m_includeGlobalServiceEvents;
259 bool m_includeGlobalServiceEventsHasBeenSet = false;
260
261 bool m_isMultiRegionTrail;
262 bool m_isMultiRegionTrailHasBeenSet = false;
263
264 Aws::String m_homeRegion;
265 bool m_homeRegionHasBeenSet = false;
266
267 Aws::String m_trailARN;
268 bool m_trailARNHasBeenSet = false;
269
270 bool m_logFileValidationEnabled;
271 bool m_logFileValidationEnabledHasBeenSet = false;
272
273 Aws::String m_cloudWatchLogsLogGroupArn;
274 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
275
276 Aws::String m_cloudWatchLogsRoleArn;
277 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
278
279 Aws::String m_kmsKeyId;
280 bool m_kmsKeyIdHasBeenSet = false;
281
282 bool m_hasCustomEventSelectors;
283 bool m_hasCustomEventSelectorsHasBeenSet = false;
284
285 bool m_hasInsightSelectors;
286 bool m_hasInsightSelectorsHasBeenSet = false;
287
288 bool m_isOrganizationTrail;
289 bool m_isOrganizationTrailHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace CloudTrail
294} // namespace Aws
void SetS3BucketName(const Aws::String &value)
Definition Trail.h:64
void SetS3BucketName(Aws::String &&value)
Definition Trail.h:65
void SetIsMultiRegionTrail(bool value)
Definition Trail.h:123
bool HasCustomEventSelectorsHasBeenSet() const
Definition Trail.h:219
Trail & WithIsMultiRegionTrail(bool value)
Definition Trail.h:124
bool CloudWatchLogsLogGroupArnHasBeenSet() const
Definition Trail.h:173
Trail & WithS3BucketName(const char *value)
Definition Trail.h:69
const Aws::String & GetHomeRegion() const
Definition Trail.h:131
void SetS3KeyPrefix(Aws::String &&value)
Definition Trail.h:82
bool GetIsOrganizationTrail() const
Definition Trail.h:239
void SetCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition Trail.h:175
Trail & WithSnsTopicARN(Aws::String &&value)
Definition Trail.h:101
const Aws::String & GetName() const
Definition Trail.h:45
void SetTrailARN(const char *value)
Definition Trail.h:151
bool HomeRegionHasBeenSet() const
Definition Trail.h:132
Trail & WithTrailARN(Aws::String &&value)
Definition Trail.h:153
Trail & WithHomeRegion(Aws::String &&value)
Definition Trail.h:137
void SetIsOrganizationTrail(bool value)
Definition Trail.h:241
void SetS3KeyPrefix(const char *value)
Definition Trail.h:83
Trail & WithHasInsightSelectors(bool value)
Definition Trail.h:232
Trail & WithSnsTopicARN(const char *value)
Definition Trail.h:102
const Aws::String & GetKmsKeyId() const
Definition Trail.h:204
Trail & WithS3BucketName(const Aws::String &value)
Definition Trail.h:67
AWS_CLOUDTRAIL_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition Trail.h:187
bool KmsKeyIdHasBeenSet() const
Definition Trail.h:205
bool GetHasCustomEventSelectors() const
Definition Trail.h:218
Trail & WithTrailARN(const char *value)
Definition Trail.h:154
Trail & WithS3BucketName(Aws::String &&value)
Definition Trail.h:68
bool IncludeGlobalServiceEventsHasBeenSet() const
Definition Trail.h:111
const Aws::String & GetTrailARN() const
Definition Trail.h:147
void SetCloudWatchLogsRoleArn(Aws::String &&value)
Definition Trail.h:190
Trail & WithLogFileValidationEnabled(bool value)
Definition Trail.h:164
Trail & WithCloudWatchLogsRoleArn(const char *value)
Definition Trail.h:194
Trail & WithCloudWatchLogsLogGroupArn(const char *value)
Definition Trail.h:179
Trail & WithTrailARN(const Aws::String &value)
Definition Trail.h:152
Trail & WithS3KeyPrefix(Aws::String &&value)
Definition Trail.h:85
Trail & WithName(const Aws::String &value)
Definition Trail.h:50
const Aws::String & GetSnsTopicARN() const
Definition Trail.h:95
bool HasInsightSelectorsHasBeenSet() const
Definition Trail.h:230
void SetHasCustomEventSelectors(bool value)
Definition Trail.h:220
Trail & WithKmsKeyId(const Aws::String &value)
Definition Trail.h:209
Trail & WithHomeRegion(const Aws::String &value)
Definition Trail.h:136
void SetName(const char *value)
Definition Trail.h:49
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition Trail.h:172
void SetSnsTopicARN(const Aws::String &value)
Definition Trail.h:97
bool GetHasInsightSelectors() const
Definition Trail.h:229
bool GetLogFileValidationEnabled() const
Definition Trail.h:161
void SetS3KeyPrefix(const Aws::String &value)
Definition Trail.h:81
void SetName(const Aws::String &value)
Definition Trail.h:47
Trail & WithCloudWatchLogsRoleArn(Aws::String &&value)
Definition Trail.h:193
void SetKmsKeyId(Aws::String &&value)
Definition Trail.h:207
Trail & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
Definition Trail.h:178
Trail & WithName(Aws::String &&value)
Definition Trail.h:51
void SetLogFileValidationEnabled(bool value)
Definition Trail.h:163
Trail & WithKmsKeyId(Aws::String &&value)
Definition Trail.h:210
Trail & WithIncludeGlobalServiceEvents(bool value)
Definition Trail.h:113
void SetKmsKeyId(const Aws::String &value)
Definition Trail.h:206
void SetSnsTopicARN(Aws::String &&value)
Definition Trail.h:98
bool LogFileValidationEnabledHasBeenSet() const
Definition Trail.h:162
bool NameHasBeenSet() const
Definition Trail.h:46
Trail & WithS3KeyPrefix(const Aws::String &value)
Definition Trail.h:84
void SetTrailARN(Aws::String &&value)
Definition Trail.h:150
Trail & WithIsOrganizationTrail(bool value)
Definition Trail.h:242
void SetKmsKeyId(const char *value)
Definition Trail.h:208
bool S3KeyPrefixHasBeenSet() const
Definition Trail.h:80
Trail & WithHasCustomEventSelectors(bool value)
Definition Trail.h:221
void SetHomeRegion(const char *value)
Definition Trail.h:135
Trail & WithS3KeyPrefix(const char *value)
Definition Trail.h:86
void SetHomeRegion(const Aws::String &value)
Definition Trail.h:133
void SetCloudWatchLogsRoleArn(const Aws::String &value)
Definition Trail.h:189
void SetSnsTopicARN(const char *value)
Definition Trail.h:99
void SetName(Aws::String &&value)
Definition Trail.h:48
Trail & WithName(const char *value)
Definition Trail.h:52
void SetHasInsightSelectors(bool value)
Definition Trail.h:231
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Trail & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition Trail.h:177
bool SnsTopicARNHasBeenSet() const
Definition Trail.h:96
bool IsMultiRegionTrailHasBeenSet() const
Definition Trail.h:122
Trail & WithCloudWatchLogsRoleArn(const Aws::String &value)
Definition Trail.h:192
const Aws::String & GetS3KeyPrefix() const
Definition Trail.h:79
void SetCloudWatchLogsLogGroupArn(const char *value)
Definition Trail.h:176
Trail & WithSnsTopicARN(const Aws::String &value)
Definition Trail.h:100
bool S3BucketNameHasBeenSet() const
Definition Trail.h:63
void SetCloudWatchLogsRoleArn(const char *value)
Definition Trail.h:191
bool GetIncludeGlobalServiceEvents() const
Definition Trail.h:110
Trail & WithHomeRegion(const char *value)
Definition Trail.h:138
const Aws::String & GetS3BucketName() const
Definition Trail.h:62
void SetCloudWatchLogsLogGroupArn(const Aws::String &value)
Definition Trail.h:174
void SetIncludeGlobalServiceEvents(bool value)
Definition Trail.h:112
void SetTrailARN(const Aws::String &value)
Definition Trail.h:149
void SetHomeRegion(Aws::String &&value)
Definition Trail.h:134
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
Trail & WithKmsKeyId(const char *value)
Definition Trail.h:211
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition Trail.h:188
void SetS3BucketName(const char *value)
Definition Trail.h:66
bool IsOrganizationTrailHasBeenSet() const
Definition Trail.h:240
bool GetIsMultiRegionTrail() const
Definition Trail.h:121
bool TrailARNHasBeenSet() const
Definition Trail.h:148
AWS_CLOUDTRAIL_API Trail()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue