AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsCloudTrailTrailDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsCloudTrailTrailDetails() = default;
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const { return m_cloudWatchLogsLogGroupArn; }
39 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
40 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
41 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
42 m_cloudWatchLogsLogGroupArnHasBeenSet = true;
43 m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value);
44 }
45 template <typename CloudWatchLogsLogGroupArnT = Aws::String>
46 AwsCloudTrailTrailDetails& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) {
47 SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetCloudWatchLogsRoleArn() const { return m_cloudWatchLogsRoleArn; }
58 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
59 template <typename CloudWatchLogsRoleArnT = Aws::String>
60 void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
61 m_cloudWatchLogsRoleArnHasBeenSet = true;
62 m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value);
63 }
64 template <typename CloudWatchLogsRoleArnT = Aws::String>
65 AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) {
66 SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value));
67 return *this;
68 }
70
72
75 inline bool GetHasCustomEventSelectors() const { return m_hasCustomEventSelectors; }
76 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
77 inline void SetHasCustomEventSelectors(bool value) {
78 m_hasCustomEventSelectorsHasBeenSet = true;
79 m_hasCustomEventSelectors = value;
80 }
83 return *this;
84 }
86
88
91 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
92 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
93 template <typename HomeRegionT = Aws::String>
94 void SetHomeRegion(HomeRegionT&& value) {
95 m_homeRegionHasBeenSet = true;
96 m_homeRegion = std::forward<HomeRegionT>(value);
97 }
98 template <typename HomeRegionT = Aws::String>
100 SetHomeRegion(std::forward<HomeRegionT>(value));
101 return *this;
102 }
104
106
110 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
111 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
112 inline void SetIncludeGlobalServiceEvents(bool value) {
113 m_includeGlobalServiceEventsHasBeenSet = true;
114 m_includeGlobalServiceEvents = value;
115 }
118 return *this;
119 }
121
123
127 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
128 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
129 inline void SetIsMultiRegionTrail(bool value) {
130 m_isMultiRegionTrailHasBeenSet = true;
131 m_isMultiRegionTrail = value;
132 }
135 return *this;
136 }
138
140
144 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
145 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
146 inline void SetIsOrganizationTrail(bool value) {
147 m_isOrganizationTrailHasBeenSet = true;
148 m_isOrganizationTrail = value;
149 }
152 return *this;
153 }
155
157
160 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
161 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
162 template <typename KmsKeyIdT = Aws::String>
163 void SetKmsKeyId(KmsKeyIdT&& value) {
164 m_kmsKeyIdHasBeenSet = true;
165 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
166 }
167 template <typename KmsKeyIdT = Aws::String>
169 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
170 return *this;
171 }
173
175
178 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
179 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
180 inline void SetLogFileValidationEnabled(bool value) {
181 m_logFileValidationEnabledHasBeenSet = true;
182 m_logFileValidationEnabled = value;
183 }
186 return *this;
187 }
189
191
194 inline const Aws::String& GetName() const { return m_name; }
195 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
196 template <typename NameT = Aws::String>
197 void SetName(NameT&& value) {
198 m_nameHasBeenSet = true;
199 m_name = std::forward<NameT>(value);
200 }
201 template <typename NameT = Aws::String>
203 SetName(std::forward<NameT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
213 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
214 template <typename S3BucketNameT = Aws::String>
215 void SetS3BucketName(S3BucketNameT&& value) {
216 m_s3BucketNameHasBeenSet = true;
217 m_s3BucketName = std::forward<S3BucketNameT>(value);
218 }
219 template <typename S3BucketNameT = Aws::String>
221 SetS3BucketName(std::forward<S3BucketNameT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
232 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
233 template <typename S3KeyPrefixT = Aws::String>
234 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
235 m_s3KeyPrefixHasBeenSet = true;
236 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
237 }
238 template <typename S3KeyPrefixT = Aws::String>
240 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
241 return *this;
242 }
244
246
250 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
251 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
252 template <typename SnsTopicArnT = Aws::String>
253 void SetSnsTopicArn(SnsTopicArnT&& value) {
254 m_snsTopicArnHasBeenSet = true;
255 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
256 }
257 template <typename SnsTopicArnT = Aws::String>
259 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
260 return *this;
261 }
263
265
269 inline const Aws::String& GetSnsTopicName() const { return m_snsTopicName; }
270 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
271 template <typename SnsTopicNameT = Aws::String>
272 void SetSnsTopicName(SnsTopicNameT&& value) {
273 m_snsTopicNameHasBeenSet = true;
274 m_snsTopicName = std::forward<SnsTopicNameT>(value);
275 }
276 template <typename SnsTopicNameT = Aws::String>
278 SetSnsTopicName(std::forward<SnsTopicNameT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetTrailArn() const { return m_trailArn; }
288 inline bool TrailArnHasBeenSet() const { return m_trailArnHasBeenSet; }
289 template <typename TrailArnT = Aws::String>
290 void SetTrailArn(TrailArnT&& value) {
291 m_trailArnHasBeenSet = true;
292 m_trailArn = std::forward<TrailArnT>(value);
293 }
294 template <typename TrailArnT = Aws::String>
296 SetTrailArn(std::forward<TrailArnT>(value));
297 return *this;
298 }
300 private:
301 Aws::String m_cloudWatchLogsLogGroupArn;
302
303 Aws::String m_cloudWatchLogsRoleArn;
304
305 bool m_hasCustomEventSelectors{false};
306
307 Aws::String m_homeRegion;
308
309 bool m_includeGlobalServiceEvents{false};
310
311 bool m_isMultiRegionTrail{false};
312
313 bool m_isOrganizationTrail{false};
314
315 Aws::String m_kmsKeyId;
316
317 bool m_logFileValidationEnabled{false};
318
319 Aws::String m_name;
320
321 Aws::String m_s3BucketName;
322
323 Aws::String m_s3KeyPrefix;
324
325 Aws::String m_snsTopicArn;
326
327 Aws::String m_snsTopicName;
328
329 Aws::String m_trailArn;
330 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
331 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
332 bool m_hasCustomEventSelectorsHasBeenSet = false;
333 bool m_homeRegionHasBeenSet = false;
334 bool m_includeGlobalServiceEventsHasBeenSet = false;
335 bool m_isMultiRegionTrailHasBeenSet = false;
336 bool m_isOrganizationTrailHasBeenSet = false;
337 bool m_kmsKeyIdHasBeenSet = false;
338 bool m_logFileValidationEnabledHasBeenSet = false;
339 bool m_nameHasBeenSet = false;
340 bool m_s3BucketNameHasBeenSet = false;
341 bool m_s3KeyPrefixHasBeenSet = false;
342 bool m_snsTopicArnHasBeenSet = false;
343 bool m_snsTopicNameHasBeenSet = false;
344 bool m_trailArnHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace SecurityHub
349} // namespace Aws
AwsCloudTrailTrailDetails & WithKmsKeyId(KmsKeyIdT &&value)
AwsCloudTrailTrailDetails & WithHasCustomEventSelectors(bool value)
AwsCloudTrailTrailDetails & WithSnsTopicName(SnsTopicNameT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsCloudTrailTrailDetails()=default
AwsCloudTrailTrailDetails & WithIncludeGlobalServiceEvents(bool value)
AwsCloudTrailTrailDetails & WithName(NameT &&value)
AwsCloudTrailTrailDetails & WithHomeRegion(HomeRegionT &&value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
AwsCloudTrailTrailDetails & WithIsOrganizationTrail(bool value)
void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT &&value)
AwsCloudTrailTrailDetails & WithS3KeyPrefix(S3KeyPrefixT &&value)
AwsCloudTrailTrailDetails & WithIsMultiRegionTrail(bool value)
AWS_SECURITYHUB_API AwsCloudTrailTrailDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCloudTrailTrailDetails & WithSnsTopicArn(SnsTopicArnT &&value)
void SetCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
AwsCloudTrailTrailDetails & WithTrailArn(TrailArnT &&value)
AWS_SECURITYHUB_API AwsCloudTrailTrailDetails(Aws::Utils::Json::JsonView jsonValue)
AwsCloudTrailTrailDetails & WithLogFileValidationEnabled(bool value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT &&value)
AwsCloudTrailTrailDetails & WithS3BucketName(S3BucketNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue