AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCloudTrailTrailDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API AwsCloudTrailTrailDetails();
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; }
45 inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; }
46 inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; }
47 inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); }
48 inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); }
53
55
59 inline const Aws::String& GetCloudWatchLogsRoleArn() const{ return m_cloudWatchLogsRoleArn; }
60 inline bool CloudWatchLogsRoleArnHasBeenSet() const { return m_cloudWatchLogsRoleArnHasBeenSet; }
61 inline void SetCloudWatchLogsRoleArn(const Aws::String& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = value; }
62 inline void SetCloudWatchLogsRoleArn(Aws::String&& value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::move(value); }
63 inline void SetCloudWatchLogsRoleArn(const char* value) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn.assign(value); }
66 inline AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(const char* value) { SetCloudWatchLogsRoleArn(value); return *this;}
68
70
73 inline bool GetHasCustomEventSelectors() const{ return m_hasCustomEventSelectors; }
74 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
75 inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; }
78
80
83 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
84 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
85 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
86 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
87 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
88 inline AwsCloudTrailTrailDetails& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
89 inline AwsCloudTrailTrailDetails& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
90 inline AwsCloudTrailTrailDetails& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
92
94
98 inline bool GetIncludeGlobalServiceEvents() const{ return m_includeGlobalServiceEvents; }
99 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
100 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
103
105
109 inline bool GetIsMultiRegionTrail() const{ return m_isMultiRegionTrail; }
110 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
111 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
112 inline AwsCloudTrailTrailDetails& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
114
116
120 inline bool GetIsOrganizationTrail() const{ return m_isOrganizationTrail; }
121 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
122 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
125
127
130 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
131 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
132 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
133 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
134 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
135 inline AwsCloudTrailTrailDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
136 inline AwsCloudTrailTrailDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
137 inline AwsCloudTrailTrailDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
139
141
144 inline bool GetLogFileValidationEnabled() const{ return m_logFileValidationEnabled; }
145 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
146 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
149
151
154 inline const Aws::String& GetName() const{ return m_name; }
155 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
156 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
157 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
158 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
159 inline AwsCloudTrailTrailDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
160 inline AwsCloudTrailTrailDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
161 inline AwsCloudTrailTrailDetails& WithName(const char* value) { SetName(value); return *this;}
163
165
168 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; }
169 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
170 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; }
171 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); }
172 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); }
173 inline AwsCloudTrailTrailDetails& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;}
174 inline AwsCloudTrailTrailDetails& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;}
175 inline AwsCloudTrailTrailDetails& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;}
177
179
183 inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; }
184 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
185 inline void SetS3KeyPrefix(const Aws::String& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = value; }
186 inline void SetS3KeyPrefix(Aws::String&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::move(value); }
187 inline void SetS3KeyPrefix(const char* value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix.assign(value); }
188 inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(const Aws::String& value) { SetS3KeyPrefix(value); return *this;}
189 inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(Aws::String&& value) { SetS3KeyPrefix(std::move(value)); return *this;}
190 inline AwsCloudTrailTrailDetails& WithS3KeyPrefix(const char* value) { SetS3KeyPrefix(value); return *this;}
192
194
198 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
199 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
200 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
201 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
202 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
203 inline AwsCloudTrailTrailDetails& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
204 inline AwsCloudTrailTrailDetails& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
205 inline AwsCloudTrailTrailDetails& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
207
209
213 inline const Aws::String& GetSnsTopicName() const{ return m_snsTopicName; }
214 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
215 inline void SetSnsTopicName(const Aws::String& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = value; }
216 inline void SetSnsTopicName(Aws::String&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::move(value); }
217 inline void SetSnsTopicName(const char* value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName.assign(value); }
218 inline AwsCloudTrailTrailDetails& WithSnsTopicName(const Aws::String& value) { SetSnsTopicName(value); return *this;}
219 inline AwsCloudTrailTrailDetails& WithSnsTopicName(Aws::String&& value) { SetSnsTopicName(std::move(value)); return *this;}
220 inline AwsCloudTrailTrailDetails& WithSnsTopicName(const char* value) { SetSnsTopicName(value); return *this;}
222
224
227 inline const Aws::String& GetTrailArn() const{ return m_trailArn; }
228 inline bool TrailArnHasBeenSet() const { return m_trailArnHasBeenSet; }
229 inline void SetTrailArn(const Aws::String& value) { m_trailArnHasBeenSet = true; m_trailArn = value; }
230 inline void SetTrailArn(Aws::String&& value) { m_trailArnHasBeenSet = true; m_trailArn = std::move(value); }
231 inline void SetTrailArn(const char* value) { m_trailArnHasBeenSet = true; m_trailArn.assign(value); }
232 inline AwsCloudTrailTrailDetails& WithTrailArn(const Aws::String& value) { SetTrailArn(value); return *this;}
233 inline AwsCloudTrailTrailDetails& WithTrailArn(Aws::String&& value) { SetTrailArn(std::move(value)); return *this;}
234 inline AwsCloudTrailTrailDetails& WithTrailArn(const char* value) { SetTrailArn(value); return *this;}
236 private:
237
238 Aws::String m_cloudWatchLogsLogGroupArn;
239 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
240
241 Aws::String m_cloudWatchLogsRoleArn;
242 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
243
244 bool m_hasCustomEventSelectors;
245 bool m_hasCustomEventSelectorsHasBeenSet = false;
246
247 Aws::String m_homeRegion;
248 bool m_homeRegionHasBeenSet = false;
249
250 bool m_includeGlobalServiceEvents;
251 bool m_includeGlobalServiceEventsHasBeenSet = false;
252
253 bool m_isMultiRegionTrail;
254 bool m_isMultiRegionTrailHasBeenSet = false;
255
256 bool m_isOrganizationTrail;
257 bool m_isOrganizationTrailHasBeenSet = false;
258
259 Aws::String m_kmsKeyId;
260 bool m_kmsKeyIdHasBeenSet = false;
261
262 bool m_logFileValidationEnabled;
263 bool m_logFileValidationEnabledHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 Aws::String m_s3BucketName;
269 bool m_s3BucketNameHasBeenSet = false;
270
271 Aws::String m_s3KeyPrefix;
272 bool m_s3KeyPrefixHasBeenSet = false;
273
274 Aws::String m_snsTopicArn;
275 bool m_snsTopicArnHasBeenSet = false;
276
277 Aws::String m_snsTopicName;
278 bool m_snsTopicNameHasBeenSet = false;
279
280 Aws::String m_trailArn;
281 bool m_trailArnHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace SecurityHub
286} // namespace Aws
AwsCloudTrailTrailDetails & WithS3BucketName(const Aws::String &value)
AwsCloudTrailTrailDetails & WithSnsTopicArn(const Aws::String &value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsRoleArn(const Aws::String &value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsRoleArn(const char *value)
AwsCloudTrailTrailDetails & WithHasCustomEventSelectors(bool value)
AwsCloudTrailTrailDetails & WithS3BucketName(Aws::String &&value)
AwsCloudTrailTrailDetails & WithHomeRegion(const char *value)
AwsCloudTrailTrailDetails & WithSnsTopicName(Aws::String &&value)
AwsCloudTrailTrailDetails & WithS3KeyPrefix(Aws::String &&value)
AwsCloudTrailTrailDetails & WithHomeRegion(const Aws::String &value)
AwsCloudTrailTrailDetails & WithSnsTopicName(const char *value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsLogGroupArn(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCloudTrailTrailDetails & WithIncludeGlobalServiceEvents(bool value)
AwsCloudTrailTrailDetails & WithTrailArn(const char *value)
AwsCloudTrailTrailDetails & WithS3KeyPrefix(const char *value)
AwsCloudTrailTrailDetails & WithSnsTopicName(const Aws::String &value)
AwsCloudTrailTrailDetails & WithIsOrganizationTrail(bool value)
AwsCloudTrailTrailDetails & WithIsMultiRegionTrail(bool value)
AwsCloudTrailTrailDetails & WithTrailArn(Aws::String &&value)
AWS_SECURITYHUB_API AwsCloudTrailTrailDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCloudTrailTrailDetails & WithCloudWatchLogsLogGroupArn(Aws::String &&value)
AwsCloudTrailTrailDetails & WithName(const char *value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsLogGroupArn(const Aws::String &value)
AwsCloudTrailTrailDetails & WithKmsKeyId(const Aws::String &value)
AwsCloudTrailTrailDetails & WithS3BucketName(const char *value)
AwsCloudTrailTrailDetails & WithSnsTopicArn(const char *value)
AwsCloudTrailTrailDetails & WithS3KeyPrefix(const Aws::String &value)
AWS_SECURITYHUB_API AwsCloudTrailTrailDetails(Aws::Utils::Json::JsonView jsonValue)
AwsCloudTrailTrailDetails & WithKmsKeyId(const char *value)
AwsCloudTrailTrailDetails & WithName(Aws::String &&value)
AwsCloudTrailTrailDetails & WithHomeRegion(Aws::String &&value)
AwsCloudTrailTrailDetails & WithCloudWatchLogsRoleArn(Aws::String &&value)
AwsCloudTrailTrailDetails & WithLogFileValidationEnabled(bool value)
AwsCloudTrailTrailDetails & WithSnsTopicArn(Aws::String &&value)
AwsCloudTrailTrailDetails & WithName(const Aws::String &value)
AwsCloudTrailTrailDetails & WithTrailArn(const Aws::String &value)
AwsCloudTrailTrailDetails & WithKmsKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue