AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/DynamodbStreamConfiguration.h>
9#include <aws/accessanalyzer/model/DynamodbTableConfiguration.h>
10#include <aws/accessanalyzer/model/EbsSnapshotConfiguration.h>
11#include <aws/accessanalyzer/model/EcrRepositoryConfiguration.h>
12#include <aws/accessanalyzer/model/EfsFileSystemConfiguration.h>
13#include <aws/accessanalyzer/model/IamRoleConfiguration.h>
14#include <aws/accessanalyzer/model/KmsKeyConfiguration.h>
15#include <aws/accessanalyzer/model/RdsDbClusterSnapshotConfiguration.h>
16#include <aws/accessanalyzer/model/RdsDbSnapshotConfiguration.h>
17#include <aws/accessanalyzer/model/S3BucketConfiguration.h>
18#include <aws/accessanalyzer/model/S3ExpressDirectoryBucketConfiguration.h>
19#include <aws/accessanalyzer/model/SecretsManagerSecretConfiguration.h>
20#include <aws/accessanalyzer/model/SnsTopicConfiguration.h>
21#include <aws/accessanalyzer/model/SqsQueueConfiguration.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace AccessAnalyzer {
33namespace Model {
34
43 public:
44 AWS_ACCESSANALYZER_API Configuration() = default;
45 AWS_ACCESSANALYZER_API Configuration(Aws::Utils::Json::JsonView jsonValue);
46 AWS_ACCESSANALYZER_API Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const EbsSnapshotConfiguration& GetEbsSnapshot() const { return m_ebsSnapshot; }
54 inline bool EbsSnapshotHasBeenSet() const { return m_ebsSnapshotHasBeenSet; }
55 template <typename EbsSnapshotT = EbsSnapshotConfiguration>
56 void SetEbsSnapshot(EbsSnapshotT&& value) {
57 m_ebsSnapshotHasBeenSet = true;
58 m_ebsSnapshot = std::forward<EbsSnapshotT>(value);
59 }
60 template <typename EbsSnapshotT = EbsSnapshotConfiguration>
61 Configuration& WithEbsSnapshot(EbsSnapshotT&& value) {
62 SetEbsSnapshot(std::forward<EbsSnapshotT>(value));
63 return *this;
64 }
66
68
71 inline const EcrRepositoryConfiguration& GetEcrRepository() const { return m_ecrRepository; }
72 inline bool EcrRepositoryHasBeenSet() const { return m_ecrRepositoryHasBeenSet; }
73 template <typename EcrRepositoryT = EcrRepositoryConfiguration>
74 void SetEcrRepository(EcrRepositoryT&& value) {
75 m_ecrRepositoryHasBeenSet = true;
76 m_ecrRepository = std::forward<EcrRepositoryT>(value);
77 }
78 template <typename EcrRepositoryT = EcrRepositoryConfiguration>
79 Configuration& WithEcrRepository(EcrRepositoryT&& value) {
80 SetEcrRepository(std::forward<EcrRepositoryT>(value));
81 return *this;
82 }
84
86
89 inline const IamRoleConfiguration& GetIamRole() const { return m_iamRole; }
90 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
91 template <typename IamRoleT = IamRoleConfiguration>
92 void SetIamRole(IamRoleT&& value) {
93 m_iamRoleHasBeenSet = true;
94 m_iamRole = std::forward<IamRoleT>(value);
95 }
96 template <typename IamRoleT = IamRoleConfiguration>
97 Configuration& WithIamRole(IamRoleT&& value) {
98 SetIamRole(std::forward<IamRoleT>(value));
99 return *this;
100 }
102
104
107 inline const EfsFileSystemConfiguration& GetEfsFileSystem() const { return m_efsFileSystem; }
108 inline bool EfsFileSystemHasBeenSet() const { return m_efsFileSystemHasBeenSet; }
109 template <typename EfsFileSystemT = EfsFileSystemConfiguration>
110 void SetEfsFileSystem(EfsFileSystemT&& value) {
111 m_efsFileSystemHasBeenSet = true;
112 m_efsFileSystem = std::forward<EfsFileSystemT>(value);
113 }
114 template <typename EfsFileSystemT = EfsFileSystemConfiguration>
115 Configuration& WithEfsFileSystem(EfsFileSystemT&& value) {
116 SetEfsFileSystem(std::forward<EfsFileSystemT>(value));
117 return *this;
118 }
120
122
125 inline const KmsKeyConfiguration& GetKmsKey() const { return m_kmsKey; }
126 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
127 template <typename KmsKeyT = KmsKeyConfiguration>
128 void SetKmsKey(KmsKeyT&& value) {
129 m_kmsKeyHasBeenSet = true;
130 m_kmsKey = std::forward<KmsKeyT>(value);
131 }
132 template <typename KmsKeyT = KmsKeyConfiguration>
133 Configuration& WithKmsKey(KmsKeyT&& value) {
134 SetKmsKey(std::forward<KmsKeyT>(value));
135 return *this;
136 }
138
140
144 inline const RdsDbClusterSnapshotConfiguration& GetRdsDbClusterSnapshot() const { return m_rdsDbClusterSnapshot; }
145 inline bool RdsDbClusterSnapshotHasBeenSet() const { return m_rdsDbClusterSnapshotHasBeenSet; }
146 template <typename RdsDbClusterSnapshotT = RdsDbClusterSnapshotConfiguration>
147 void SetRdsDbClusterSnapshot(RdsDbClusterSnapshotT&& value) {
148 m_rdsDbClusterSnapshotHasBeenSet = true;
149 m_rdsDbClusterSnapshot = std::forward<RdsDbClusterSnapshotT>(value);
150 }
151 template <typename RdsDbClusterSnapshotT = RdsDbClusterSnapshotConfiguration>
152 Configuration& WithRdsDbClusterSnapshot(RdsDbClusterSnapshotT&& value) {
153 SetRdsDbClusterSnapshot(std::forward<RdsDbClusterSnapshotT>(value));
154 return *this;
155 }
157
159
162 inline const RdsDbSnapshotConfiguration& GetRdsDbSnapshot() const { return m_rdsDbSnapshot; }
163 inline bool RdsDbSnapshotHasBeenSet() const { return m_rdsDbSnapshotHasBeenSet; }
164 template <typename RdsDbSnapshotT = RdsDbSnapshotConfiguration>
165 void SetRdsDbSnapshot(RdsDbSnapshotT&& value) {
166 m_rdsDbSnapshotHasBeenSet = true;
167 m_rdsDbSnapshot = std::forward<RdsDbSnapshotT>(value);
168 }
169 template <typename RdsDbSnapshotT = RdsDbSnapshotConfiguration>
170 Configuration& WithRdsDbSnapshot(RdsDbSnapshotT&& value) {
171 SetRdsDbSnapshot(std::forward<RdsDbSnapshotT>(value));
172 return *this;
173 }
175
177
180 inline const SecretsManagerSecretConfiguration& GetSecretsManagerSecret() const { return m_secretsManagerSecret; }
181 inline bool SecretsManagerSecretHasBeenSet() const { return m_secretsManagerSecretHasBeenSet; }
182 template <typename SecretsManagerSecretT = SecretsManagerSecretConfiguration>
183 void SetSecretsManagerSecret(SecretsManagerSecretT&& value) {
184 m_secretsManagerSecretHasBeenSet = true;
185 m_secretsManagerSecret = std::forward<SecretsManagerSecretT>(value);
186 }
187 template <typename SecretsManagerSecretT = SecretsManagerSecretConfiguration>
188 Configuration& WithSecretsManagerSecret(SecretsManagerSecretT&& value) {
189 SetSecretsManagerSecret(std::forward<SecretsManagerSecretT>(value));
190 return *this;
191 }
193
195
198 inline const S3BucketConfiguration& GetS3Bucket() const { return m_s3Bucket; }
199 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
200 template <typename S3BucketT = S3BucketConfiguration>
201 void SetS3Bucket(S3BucketT&& value) {
202 m_s3BucketHasBeenSet = true;
203 m_s3Bucket = std::forward<S3BucketT>(value);
204 }
205 template <typename S3BucketT = S3BucketConfiguration>
206 Configuration& WithS3Bucket(S3BucketT&& value) {
207 SetS3Bucket(std::forward<S3BucketT>(value));
208 return *this;
209 }
211
213
216 inline const SnsTopicConfiguration& GetSnsTopic() const { return m_snsTopic; }
217 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
218 template <typename SnsTopicT = SnsTopicConfiguration>
219 void SetSnsTopic(SnsTopicT&& value) {
220 m_snsTopicHasBeenSet = true;
221 m_snsTopic = std::forward<SnsTopicT>(value);
222 }
223 template <typename SnsTopicT = SnsTopicConfiguration>
224 Configuration& WithSnsTopic(SnsTopicT&& value) {
225 SetSnsTopic(std::forward<SnsTopicT>(value));
226 return *this;
227 }
229
231
234 inline const SqsQueueConfiguration& GetSqsQueue() const { return m_sqsQueue; }
235 inline bool SqsQueueHasBeenSet() const { return m_sqsQueueHasBeenSet; }
236 template <typename SqsQueueT = SqsQueueConfiguration>
237 void SetSqsQueue(SqsQueueT&& value) {
238 m_sqsQueueHasBeenSet = true;
239 m_sqsQueue = std::forward<SqsQueueT>(value);
240 }
241 template <typename SqsQueueT = SqsQueueConfiguration>
242 Configuration& WithSqsQueue(SqsQueueT&& value) {
243 SetSqsQueue(std::forward<SqsQueueT>(value));
244 return *this;
245 }
247
249
252 inline const S3ExpressDirectoryBucketConfiguration& GetS3ExpressDirectoryBucket() const { return m_s3ExpressDirectoryBucket; }
253 inline bool S3ExpressDirectoryBucketHasBeenSet() const { return m_s3ExpressDirectoryBucketHasBeenSet; }
254 template <typename S3ExpressDirectoryBucketT = S3ExpressDirectoryBucketConfiguration>
255 void SetS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT&& value) {
256 m_s3ExpressDirectoryBucketHasBeenSet = true;
257 m_s3ExpressDirectoryBucket = std::forward<S3ExpressDirectoryBucketT>(value);
258 }
259 template <typename S3ExpressDirectoryBucketT = S3ExpressDirectoryBucketConfiguration>
260 Configuration& WithS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT&& value) {
261 SetS3ExpressDirectoryBucket(std::forward<S3ExpressDirectoryBucketT>(value));
262 return *this;
263 }
265
267
270 inline const DynamodbStreamConfiguration& GetDynamodbStream() const { return m_dynamodbStream; }
271 inline bool DynamodbStreamHasBeenSet() const { return m_dynamodbStreamHasBeenSet; }
272 template <typename DynamodbStreamT = DynamodbStreamConfiguration>
273 void SetDynamodbStream(DynamodbStreamT&& value) {
274 m_dynamodbStreamHasBeenSet = true;
275 m_dynamodbStream = std::forward<DynamodbStreamT>(value);
276 }
277 template <typename DynamodbStreamT = DynamodbStreamConfiguration>
278 Configuration& WithDynamodbStream(DynamodbStreamT&& value) {
279 SetDynamodbStream(std::forward<DynamodbStreamT>(value));
280 return *this;
281 }
283
285
288 inline const DynamodbTableConfiguration& GetDynamodbTable() const { return m_dynamodbTable; }
289 inline bool DynamodbTableHasBeenSet() const { return m_dynamodbTableHasBeenSet; }
290 template <typename DynamodbTableT = DynamodbTableConfiguration>
291 void SetDynamodbTable(DynamodbTableT&& value) {
292 m_dynamodbTableHasBeenSet = true;
293 m_dynamodbTable = std::forward<DynamodbTableT>(value);
294 }
295 template <typename DynamodbTableT = DynamodbTableConfiguration>
296 Configuration& WithDynamodbTable(DynamodbTableT&& value) {
297 SetDynamodbTable(std::forward<DynamodbTableT>(value));
298 return *this;
299 }
301 private:
302 EbsSnapshotConfiguration m_ebsSnapshot;
303
304 EcrRepositoryConfiguration m_ecrRepository;
305
306 IamRoleConfiguration m_iamRole;
307
308 EfsFileSystemConfiguration m_efsFileSystem;
309
310 KmsKeyConfiguration m_kmsKey;
311
312 RdsDbClusterSnapshotConfiguration m_rdsDbClusterSnapshot;
313
314 RdsDbSnapshotConfiguration m_rdsDbSnapshot;
315
316 SecretsManagerSecretConfiguration m_secretsManagerSecret;
317
318 S3BucketConfiguration m_s3Bucket;
319
320 SnsTopicConfiguration m_snsTopic;
321
322 SqsQueueConfiguration m_sqsQueue;
323
324 S3ExpressDirectoryBucketConfiguration m_s3ExpressDirectoryBucket;
325
326 DynamodbStreamConfiguration m_dynamodbStream;
327
328 DynamodbTableConfiguration m_dynamodbTable;
329 bool m_ebsSnapshotHasBeenSet = false;
330 bool m_ecrRepositoryHasBeenSet = false;
331 bool m_iamRoleHasBeenSet = false;
332 bool m_efsFileSystemHasBeenSet = false;
333 bool m_kmsKeyHasBeenSet = false;
334 bool m_rdsDbClusterSnapshotHasBeenSet = false;
335 bool m_rdsDbSnapshotHasBeenSet = false;
336 bool m_secretsManagerSecretHasBeenSet = false;
337 bool m_s3BucketHasBeenSet = false;
338 bool m_snsTopicHasBeenSet = false;
339 bool m_sqsQueueHasBeenSet = false;
340 bool m_s3ExpressDirectoryBucketHasBeenSet = false;
341 bool m_dynamodbStreamHasBeenSet = false;
342 bool m_dynamodbTableHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace AccessAnalyzer
347} // namespace Aws
Configuration & WithEcrRepository(EcrRepositoryT &&value)
const S3BucketConfiguration & GetS3Bucket() const
Configuration & WithDynamodbStream(DynamodbStreamT &&value)
Configuration & WithIamRole(IamRoleT &&value)
Configuration & WithSnsTopic(SnsTopicT &&value)
void SetEfsFileSystem(EfsFileSystemT &&value)
Configuration & WithDynamodbTable(DynamodbTableT &&value)
void SetDynamodbTable(DynamodbTableT &&value)
void SetSecretsManagerSecret(SecretsManagerSecretT &&value)
const SnsTopicConfiguration & GetSnsTopic() const
void SetRdsDbSnapshot(RdsDbSnapshotT &&value)
const SecretsManagerSecretConfiguration & GetSecretsManagerSecret() const
AWS_ACCESSANALYZER_API Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
const KmsKeyConfiguration & GetKmsKey() const
AWS_ACCESSANALYZER_API Configuration()=default
const S3ExpressDirectoryBucketConfiguration & GetS3ExpressDirectoryBucket() const
Configuration & WithKmsKey(KmsKeyT &&value)
const SqsQueueConfiguration & GetSqsQueue() const
const IamRoleConfiguration & GetIamRole() const
const EbsSnapshotConfiguration & GetEbsSnapshot() const
void SetEcrRepository(EcrRepositoryT &&value)
AWS_ACCESSANALYZER_API Configuration(Aws::Utils::Json::JsonView jsonValue)
Configuration & WithS3Bucket(S3BucketT &&value)
const RdsDbClusterSnapshotConfiguration & GetRdsDbClusterSnapshot() const
const EcrRepositoryConfiguration & GetEcrRepository() const
Configuration & WithEfsFileSystem(EfsFileSystemT &&value)
Configuration & WithS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT &&value)
Configuration & WithRdsDbSnapshot(RdsDbSnapshotT &&value)
const EfsFileSystemConfiguration & GetEfsFileSystem() const
void SetEbsSnapshot(EbsSnapshotT &&value)
Configuration & WithSqsQueue(SqsQueueT &&value)
const RdsDbSnapshotConfiguration & GetRdsDbSnapshot() const
void SetS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT &&value)
void SetDynamodbStream(DynamodbStreamT &&value)
Configuration & WithEbsSnapshot(EbsSnapshotT &&value)
const DynamodbTableConfiguration & GetDynamodbTable() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
Configuration & WithRdsDbClusterSnapshot(RdsDbClusterSnapshotT &&value)
void SetRdsDbClusterSnapshot(RdsDbClusterSnapshotT &&value)
Configuration & WithSecretsManagerSecret(SecretsManagerSecretT &&value)
const DynamodbStreamConfiguration & GetDynamodbStream() const
Aws::Utils::Json::JsonValue JsonValue