AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
47 void SetCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::forward<CloudWatchLogsLogGroupArnT>(value); }
48 template<typename CloudWatchLogsLogGroupArnT = Aws::String>
49 AwsCloudTrailTrailDetails& WithCloudWatchLogsLogGroupArn(CloudWatchLogsLogGroupArnT&& value) { SetCloudWatchLogsLogGroupArn(std::forward<CloudWatchLogsLogGroupArnT>(value)); return *this;}
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) { m_cloudWatchLogsRoleArnHasBeenSet = true; m_cloudWatchLogsRoleArn = std::forward<CloudWatchLogsRoleArnT>(value); }
61 template<typename CloudWatchLogsRoleArnT = Aws::String>
62 AwsCloudTrailTrailDetails& WithCloudWatchLogsRoleArn(CloudWatchLogsRoleArnT&& value) { SetCloudWatchLogsRoleArn(std::forward<CloudWatchLogsRoleArnT>(value)); return *this;}
64
66
69 inline bool GetHasCustomEventSelectors() const { return m_hasCustomEventSelectors; }
70 inline bool HasCustomEventSelectorsHasBeenSet() const { return m_hasCustomEventSelectorsHasBeenSet; }
71 inline void SetHasCustomEventSelectors(bool value) { m_hasCustomEventSelectorsHasBeenSet = true; m_hasCustomEventSelectors = value; }
74
76
79 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
80 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
81 template<typename HomeRegionT = Aws::String>
82 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::forward<HomeRegionT>(value); }
83 template<typename HomeRegionT = Aws::String>
84 AwsCloudTrailTrailDetails& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
86
88
92 inline bool GetIncludeGlobalServiceEvents() const { return m_includeGlobalServiceEvents; }
93 inline bool IncludeGlobalServiceEventsHasBeenSet() const { return m_includeGlobalServiceEventsHasBeenSet; }
94 inline void SetIncludeGlobalServiceEvents(bool value) { m_includeGlobalServiceEventsHasBeenSet = true; m_includeGlobalServiceEvents = value; }
97
99
103 inline bool GetIsMultiRegionTrail() const { return m_isMultiRegionTrail; }
104 inline bool IsMultiRegionTrailHasBeenSet() const { return m_isMultiRegionTrailHasBeenSet; }
105 inline void SetIsMultiRegionTrail(bool value) { m_isMultiRegionTrailHasBeenSet = true; m_isMultiRegionTrail = value; }
106 inline AwsCloudTrailTrailDetails& WithIsMultiRegionTrail(bool value) { SetIsMultiRegionTrail(value); return *this;}
108
110
114 inline bool GetIsOrganizationTrail() const { return m_isOrganizationTrail; }
115 inline bool IsOrganizationTrailHasBeenSet() const { return m_isOrganizationTrailHasBeenSet; }
116 inline void SetIsOrganizationTrail(bool value) { m_isOrganizationTrailHasBeenSet = true; m_isOrganizationTrail = value; }
119
121
124 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
125 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
126 template<typename KmsKeyIdT = Aws::String>
127 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
128 template<typename KmsKeyIdT = Aws::String>
129 AwsCloudTrailTrailDetails& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
131
133
136 inline bool GetLogFileValidationEnabled() const { return m_logFileValidationEnabled; }
137 inline bool LogFileValidationEnabledHasBeenSet() const { return m_logFileValidationEnabledHasBeenSet; }
138 inline void SetLogFileValidationEnabled(bool value) { m_logFileValidationEnabledHasBeenSet = true; m_logFileValidationEnabled = value; }
141
143
146 inline const Aws::String& GetName() const { return m_name; }
147 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
148 template<typename NameT = Aws::String>
149 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
150 template<typename NameT = Aws::String>
151 AwsCloudTrailTrailDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
153
155
158 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
159 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
160 template<typename S3BucketNameT = Aws::String>
161 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
162 template<typename S3BucketNameT = Aws::String>
163 AwsCloudTrailTrailDetails& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
165
167
171 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
172 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
173 template<typename S3KeyPrefixT = Aws::String>
174 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
175 template<typename S3KeyPrefixT = Aws::String>
176 AwsCloudTrailTrailDetails& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
178
180
184 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
185 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
186 template<typename SnsTopicArnT = Aws::String>
187 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
188 template<typename SnsTopicArnT = Aws::String>
189 AwsCloudTrailTrailDetails& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
191
193
197 inline const Aws::String& GetSnsTopicName() const { return m_snsTopicName; }
198 inline bool SnsTopicNameHasBeenSet() const { return m_snsTopicNameHasBeenSet; }
199 template<typename SnsTopicNameT = Aws::String>
200 void SetSnsTopicName(SnsTopicNameT&& value) { m_snsTopicNameHasBeenSet = true; m_snsTopicName = std::forward<SnsTopicNameT>(value); }
201 template<typename SnsTopicNameT = Aws::String>
202 AwsCloudTrailTrailDetails& WithSnsTopicName(SnsTopicNameT&& value) { SetSnsTopicName(std::forward<SnsTopicNameT>(value)); return *this;}
204
206
209 inline const Aws::String& GetTrailArn() const { return m_trailArn; }
210 inline bool TrailArnHasBeenSet() const { return m_trailArnHasBeenSet; }
211 template<typename TrailArnT = Aws::String>
212 void SetTrailArn(TrailArnT&& value) { m_trailArnHasBeenSet = true; m_trailArn = std::forward<TrailArnT>(value); }
213 template<typename TrailArnT = Aws::String>
214 AwsCloudTrailTrailDetails& WithTrailArn(TrailArnT&& value) { SetTrailArn(std::forward<TrailArnT>(value)); return *this;}
216 private:
217
218 Aws::String m_cloudWatchLogsLogGroupArn;
219 bool m_cloudWatchLogsLogGroupArnHasBeenSet = false;
220
221 Aws::String m_cloudWatchLogsRoleArn;
222 bool m_cloudWatchLogsRoleArnHasBeenSet = false;
223
224 bool m_hasCustomEventSelectors{false};
225 bool m_hasCustomEventSelectorsHasBeenSet = false;
226
227 Aws::String m_homeRegion;
228 bool m_homeRegionHasBeenSet = false;
229
230 bool m_includeGlobalServiceEvents{false};
231 bool m_includeGlobalServiceEventsHasBeenSet = false;
232
233 bool m_isMultiRegionTrail{false};
234 bool m_isMultiRegionTrailHasBeenSet = false;
235
236 bool m_isOrganizationTrail{false};
237 bool m_isOrganizationTrailHasBeenSet = false;
238
239 Aws::String m_kmsKeyId;
240 bool m_kmsKeyIdHasBeenSet = false;
241
242 bool m_logFileValidationEnabled{false};
243 bool m_logFileValidationEnabledHasBeenSet = false;
244
245 Aws::String m_name;
246 bool m_nameHasBeenSet = false;
247
248 Aws::String m_s3BucketName;
249 bool m_s3BucketNameHasBeenSet = false;
250
251 Aws::String m_s3KeyPrefix;
252 bool m_s3KeyPrefixHasBeenSet = false;
253
254 Aws::String m_snsTopicArn;
255 bool m_snsTopicArnHasBeenSet = false;
256
257 Aws::String m_snsTopicName;
258 bool m_snsTopicNameHasBeenSet = false;
259
260 Aws::String m_trailArn;
261 bool m_trailArnHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace SecurityHub
266} // 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