AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 Trail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
64 template<typename S3BucketNameT = Aws::String>
65 Trail& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
67
69
75 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
76 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
77 template<typename S3KeyPrefixT = Aws::String>
78 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
79 template<typename S3KeyPrefixT = Aws::String>
80 Trail& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
82
84
89 inline const Aws::String& GetSnsTopicARN() const { return m_snsTopicARN; }
90 inline bool SnsTopicARNHasBeenSet() const { return m_snsTopicARNHasBeenSet; }
91 template<typename SnsTopicARNT = Aws::String>
92 void SetSnsTopicARN(SnsTopicARNT&& value) { m_snsTopicARNHasBeenSet = true; m_snsTopicARN = std::forward<SnsTopicARNT>(value); }
93 template<typename SnsTopicARNT = Aws::String>
94 Trail& WithSnsTopicARN(SnsTopicARNT&& value) { SetSnsTopicARN(std::forward<SnsTopicARNT>(value)); return *this;}
96
98
102 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
103 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
104 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
105 inline Trail& WithIncludeGlobalServiceEvents(bool value) { SetIncludeGlobalServiceEvents(value); return *this;}
107
109
113 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
114 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
115 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
116 inline Trail& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
118
120
123 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
124 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
125 template<typename HomeRegionT = Aws::String>
126 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::forward<HomeRegionT>(value); }
127 template<typename HomeRegionT = Aws::String>
128 Trail& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
130
132
137 inline const Aws::String& GetTrailARN() const { return m_trailARN; }
138 inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; }
139 template<typename TrailARNT = Aws::String>
140 void SetTrailARN(TrailARNT&& value) { m_trailARNHasBeenSet = true; m_trailARN = std::forward<TrailARNT>(value); }
141 template<typename TrailARNT = Aws::String>
142 Trail& WithTrailARN(TrailARNT&& value) { SetTrailARN(std::forward<TrailARNT>(value)); return *this;}
144
146
149 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
150 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
151 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
152 inline Trail& WithLogFileValidationEnabled(bool value) { SetLogFileValidationEnabled(value); return *this;}
154
156
160 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
161 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
162 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
163 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
164 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
165 Trail& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
167
169
173 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
174 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
175 template<typename CloudWatchLogsRoleArnT = Aws::String>
176 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
177 template<typename CloudWatchLogsRoleArnT = Aws::String>
178 Trail& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
180
182
188 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
189 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
190 template<typename KmsKeyIdT = Aws::String>
191 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
192 template<typename KmsKeyIdT = Aws::String>
193 Trail& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
195
197
200 inline bool GetHasCustomEventSelectors() const { return m_hasCustomEventSelectors; }
201 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
202 inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; }
203 inline Trail& WithHasCustomEventSelectors(bool value) { SetHasCustomEventSelectors(value); return *this;}
205
207
211 inline bool GetHasInsightSelectors() const { return m_hasInsightSelectors; }
212 inline bool HasInsightSelectorsHasBeenSet() const { return m_hasInsightSelectorsHasBeenSet; }
213 inline void SetHasInsightSelectors(bool value) { m_hasInsightSelectorsHasBeenSet = true; m_hasInsightSelectors = value; }
214 inline Trail& WithHasInsightSelectors(bool value) { SetHasInsightSelectors(value); return *this;}
216
218
221 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
222 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
223 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
224 inline Trail& WithIsOrganizationTrail(bool value) { SetIsOrganizationTrail(value); return *this;}
226 private:
227
228 Aws::String m_name;
229 bool m_nameHasBeenSet = false;
230
231 Aws::String m_s3BucketName;
232 bool m_s3BucketNameHasBeenSet = false;
233
234 Aws::String m_s3KeyPrefix;
235 bool m_s3KeyPrefixHasBeenSet = false;
236
237 Aws::String m_snsTopicARN;
238 bool m_snsTopicARNHasBeenSet = false;
239
240 bool m_includeGlobalServiceEvents{false};
241 bool m_includeGlobalServiceEventsHasBeenSet = false;
242
243 bool m_isMultiRegionTrail{false};
244 bool m_isMultiRegionTrailHasBeenSet = false;
245
246 Aws::String m_homeRegion;
247 bool m_homeRegionHasBeenSet = false;
248
249 Aws::String m_trailARN;
250 bool m_trailARNHasBeenSet = false;
251
252 bool m_logFileValidationEnabled{false};
253 bool m_logFileValidationEnabledHasBeenSet = false;
254
255 Aws::String m_cloudWatchLogsLogGroupArn;
256 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
257
258 Aws::String m_cloudWatchLogsRoleArn;
259 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
260
261 Aws::String m_kmsKeyId;
262 bool m_kmsKeyIdHasBeenSet = false;
263
264 bool m_hasCustomEventSelectors{false};
265 bool m_hasCustomEventSelectorsHasBeenSet = false;
266
267 bool m_hasInsightSelectors{false};
268 bool m_hasInsightSelectorsHasBeenSet = false;
269
270 bool m_isOrganizationTrail{false};
271 bool m_isOrganizationTrailHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace CloudTrail
276} // namespace Aws
void SetS3BucketName(S3BucketNameT &&value)
Definition Trail.h:63
void SetIsMultiRegionTrail(bool value)
Definition Trail.h:115
bool HasCustomEventSelectorsHasBeenSet() const
Definition Trail.h:201
Trail & WithIsMultiRegionTrail(bool value)
Definition Trail.h:116
bool CloudWatchLogsLogGroupArnHasBeenSet() const
Definition Trail.h:161
const Aws::String & GetHomeRegion() const
Definition Trail.h:123
Trail & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:165
void SetHomeRegion(HomeRegionT &&value)
Definition Trail.h:126
bool GetIsOrganizationTrail() const
Definition Trail.h:221
Trail & WithS3BucketName(S3BucketNameT &&value)
Definition Trail.h:65
const Aws::String & GetName() const
Definition Trail.h:45
bool HomeRegionHasBeenSet() const
Definition Trail.h:124
void SetIsOrganizationTrail(bool value)
Definition Trail.h:223
void SetName(NameT &&value)
Definition Trail.h:48
Trail & WithHasInsightSelectors(bool value)
Definition Trail.h:214
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:191
AWS_CLOUDTRAIL_API Trail()=default
const Aws::String & GetKmsKeyId() const
Definition Trail.h:188
AWS_CLOUDTRAIL_API Trail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCloudWatchLogsRoleArn() const
Definition Trail.h:173
bool KmsKeyIdHasBeenSet() const
Definition Trail.h:189
bool GetHasCustomEventSelectors() const
Definition Trail.h:200
bool IncludeGlobalServiceEventsHasBeenSet() const
Definition Trail.h:103
const Aws::String & GetTrailARN() const
Definition Trail.h:137
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:176
Trail & WithLogFileValidationEnabled(bool value)
Definition Trail.h:152
Trail & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
Definition Trail.h:178
const Aws::String & GetSnsTopicARN() const
Definition Trail.h:89
bool HasInsightSelectorsHasBeenSet() const
Definition Trail.h:212
void SetHasCustomEventSelectors(bool value)
Definition Trail.h:202
Trail & WithKmsKeyId(KmsKeyIdT &&value)
Definition Trail.h:193
const Aws::String & GetCloudWatchLogsLogGroupArn() const
Definition Trail.h:160
bool GetHasInsightSelectors() const
Definition Trail.h:211
bool GetLogFileValidationEnabled() const
Definition Trail.h:149
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
Definition Trail.h:163
void SetS3KeyPrefix(S3KeyPrefixT &&value)
Definition Trail.h:78
void SetLogFileValidationEnabled(bool value)
Definition Trail.h:151
Trail & WithIncludeGlobalServiceEvents(bool value)
Definition Trail.h:105
bool LogFileValidationEnabledHasBeenSet() const
Definition Trail.h:150
bool NameHasBeenSet() const
Definition Trail.h:46
Trail & WithIsOrganizationTrail(bool value)
Definition Trail.h:224
bool S3KeyPrefixHasBeenSet() const
Definition Trail.h:76
Trail & WithHasCustomEventSelectors(bool value)
Definition Trail.h:203
void SetTrailARN(TrailARNT &&value)
Definition Trail.h:140
void SetHasInsightSelectors(bool value)
Definition Trail.h:213
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
bool SnsTopicARNHasBeenSet() const
Definition Trail.h:90
Trail & WithHomeRegion(HomeRegionT &&value)
Definition Trail.h:128
bool IsMultiRegionTrailHasBeenSet() const
Definition Trail.h:114
const Aws::String & GetS3KeyPrefix() const
Definition Trail.h:75
Trail & WithS3KeyPrefix(S3KeyPrefixT &&value)
Definition Trail.h:80
void SetSnsTopicARN(SnsTopicARNT &&value)
Definition Trail.h:92
Trail & WithSnsTopicARN(SnsTopicARNT &&value)
Definition Trail.h:94
bool S3BucketNameHasBeenSet() const
Definition Trail.h:61
bool GetIncludeGlobalServiceEvents() const
Definition Trail.h:102
const Aws::String & GetS3BucketName() const
Definition Trail.h:60
void SetIncludeGlobalServiceEvents(bool value)
Definition Trail.h:104
AWS_CLOUDTRAIL_API Trail(Aws::Utils::Json::JsonView jsonValue)
bool CloudWatchLogsRoleArnHasBeenSet() const
Definition Trail.h:174
bool IsOrganizationTrailHasBeenSet() const
Definition Trail.h:222
bool GetIsMultiRegionTrail() const
Definition Trail.h:113
bool TrailARNHasBeenSet() const
Definition Trail.h:138
Trail & WithTrailARN(TrailARNT &&value)
Definition Trail.h:142
Trail & WithName(NameT &&value)
Definition Trail.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue