AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Configuration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/EbsSnapshotConfiguration.h>
9#include <aws/accessanalyzer/model/EcrRepositoryConfiguration.h>
10#include <aws/accessanalyzer/model/IamRoleConfiguration.h>
11#include <aws/accessanalyzer/model/EfsFileSystemConfiguration.h>
12#include <aws/accessanalyzer/model/KmsKeyConfiguration.h>
13#include <aws/accessanalyzer/model/RdsDbClusterSnapshotConfiguration.h>
14#include <aws/accessanalyzer/model/RdsDbSnapshotConfiguration.h>
15#include <aws/accessanalyzer/model/SecretsManagerSecretConfiguration.h>
16#include <aws/accessanalyzer/model/S3BucketConfiguration.h>
17#include <aws/accessanalyzer/model/SnsTopicConfiguration.h>
18#include <aws/accessanalyzer/model/SqsQueueConfiguration.h>
19#include <aws/accessanalyzer/model/S3ExpressDirectoryBucketConfiguration.h>
20#include <aws/accessanalyzer/model/DynamodbStreamConfiguration.h>
21#include <aws/accessanalyzer/model/DynamodbTableConfiguration.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace AccessAnalyzer
35{
36namespace Model
37{
38
47 {
48 public:
49 AWS_ACCESSANALYZER_API Configuration() = default;
50 AWS_ACCESSANALYZER_API Configuration(Aws::Utils::Json::JsonView jsonValue);
51 AWS_ACCESSANALYZER_API Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const EbsSnapshotConfiguration& GetEbsSnapshot() const { return m_ebsSnapshot; }
60 inline bool EbsSnapshotHasBeenSet() const { return m_ebsSnapshotHasBeenSet; }
61 template<typename EbsSnapshotT = EbsSnapshotConfiguration>
62 void SetEbsSnapshot(EbsSnapshotT&& value) { m_ebsSnapshotHasBeenSet = true; m_ebsSnapshot = std::forward<EbsSnapshotT>(value); }
63 template<typename EbsSnapshotT = EbsSnapshotConfiguration>
64 Configuration& WithEbsSnapshot(EbsSnapshotT&& value) { SetEbsSnapshot(std::forward<EbsSnapshotT>(value)); return *this;}
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) { m_ecrRepositoryHasBeenSet = true; m_ecrRepository = std::forward<EcrRepositoryT>(value); }
75 template<typename EcrRepositoryT = EcrRepositoryConfiguration>
76 Configuration& WithEcrRepository(EcrRepositoryT&& value) { SetEcrRepository(std::forward<EcrRepositoryT>(value)); return *this;}
78
80
83 inline const IamRoleConfiguration& GetIamRole() const { return m_iamRole; }
84 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
85 template<typename IamRoleT = IamRoleConfiguration>
86 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
87 template<typename IamRoleT = IamRoleConfiguration>
88 Configuration& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
90
92
95 inline const EfsFileSystemConfiguration& GetEfsFileSystem() const { return m_efsFileSystem; }
96 inline bool EfsFileSystemHasBeenSet() const { return m_efsFileSystemHasBeenSet; }
97 template<typename EfsFileSystemT = EfsFileSystemConfiguration>
98 void SetEfsFileSystem(EfsFileSystemT&& value) { m_efsFileSystemHasBeenSet = true; m_efsFileSystem = std::forward<EfsFileSystemT>(value); }
99 template<typename EfsFileSystemT = EfsFileSystemConfiguration>
100 Configuration& WithEfsFileSystem(EfsFileSystemT&& value) { SetEfsFileSystem(std::forward<EfsFileSystemT>(value)); return *this;}
102
104
107 inline const KmsKeyConfiguration& GetKmsKey() const { return m_kmsKey; }
108 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
109 template<typename KmsKeyT = KmsKeyConfiguration>
110 void SetKmsKey(KmsKeyT&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::forward<KmsKeyT>(value); }
111 template<typename KmsKeyT = KmsKeyConfiguration>
112 Configuration& WithKmsKey(KmsKeyT&& value) { SetKmsKey(std::forward<KmsKeyT>(value)); return *this;}
114
116
120 inline const RdsDbClusterSnapshotConfiguration& GetRdsDbClusterSnapshot() const { return m_rdsDbClusterSnapshot; }
121 inline bool RdsDbClusterSnapshotHasBeenSet() const { return m_rdsDbClusterSnapshotHasBeenSet; }
122 template<typename RdsDbClusterSnapshotT = RdsDbClusterSnapshotConfiguration>
123 void SetRdsDbClusterSnapshot(RdsDbClusterSnapshotT&& value) { m_rdsDbClusterSnapshotHasBeenSet = true; m_rdsDbClusterSnapshot = std::forward<RdsDbClusterSnapshotT>(value); }
124 template<typename RdsDbClusterSnapshotT = RdsDbClusterSnapshotConfiguration>
125 Configuration& WithRdsDbClusterSnapshot(RdsDbClusterSnapshotT&& value) { SetRdsDbClusterSnapshot(std::forward<RdsDbClusterSnapshotT>(value)); return *this;}
127
129
132 inline const RdsDbSnapshotConfiguration& GetRdsDbSnapshot() const { return m_rdsDbSnapshot; }
133 inline bool RdsDbSnapshotHasBeenSet() const { return m_rdsDbSnapshotHasBeenSet; }
134 template<typename RdsDbSnapshotT = RdsDbSnapshotConfiguration>
135 void SetRdsDbSnapshot(RdsDbSnapshotT&& value) { m_rdsDbSnapshotHasBeenSet = true; m_rdsDbSnapshot = std::forward<RdsDbSnapshotT>(value); }
136 template<typename RdsDbSnapshotT = RdsDbSnapshotConfiguration>
137 Configuration& WithRdsDbSnapshot(RdsDbSnapshotT&& value) { SetRdsDbSnapshot(std::forward<RdsDbSnapshotT>(value)); return *this;}
139
141
144 inline const SecretsManagerSecretConfiguration& GetSecretsManagerSecret() const { return m_secretsManagerSecret; }
145 inline bool SecretsManagerSecretHasBeenSet() const { return m_secretsManagerSecretHasBeenSet; }
146 template<typename SecretsManagerSecretT = SecretsManagerSecretConfiguration>
147 void SetSecretsManagerSecret(SecretsManagerSecretT&& value) { m_secretsManagerSecretHasBeenSet = true; m_secretsManagerSecret = std::forward<SecretsManagerSecretT>(value); }
148 template<typename SecretsManagerSecretT = SecretsManagerSecretConfiguration>
149 Configuration& WithSecretsManagerSecret(SecretsManagerSecretT&& value) { SetSecretsManagerSecret(std::forward<SecretsManagerSecretT>(value)); return *this;}
151
153
156 inline const S3BucketConfiguration& GetS3Bucket() const { return m_s3Bucket; }
157 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
158 template<typename S3BucketT = S3BucketConfiguration>
159 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
160 template<typename S3BucketT = S3BucketConfiguration>
161 Configuration& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
163
165
168 inline const SnsTopicConfiguration& GetSnsTopic() const { return m_snsTopic; }
169 inline bool SnsTopicHasBeenSet() const { return m_snsTopicHasBeenSet; }
170 template<typename SnsTopicT = SnsTopicConfiguration>
171 void SetSnsTopic(SnsTopicT&& value) { m_snsTopicHasBeenSet = true; m_snsTopic = std::forward<SnsTopicT>(value); }
172 template<typename SnsTopicT = SnsTopicConfiguration>
173 Configuration& WithSnsTopic(SnsTopicT&& value) { SetSnsTopic(std::forward<SnsTopicT>(value)); return *this;}
175
177
180 inline const SqsQueueConfiguration& GetSqsQueue() const { return m_sqsQueue; }
181 inline bool SqsQueueHasBeenSet() const { return m_sqsQueueHasBeenSet; }
182 template<typename SqsQueueT = SqsQueueConfiguration>
183 void SetSqsQueue(SqsQueueT&& value) { m_sqsQueueHasBeenSet = true; m_sqsQueue = std::forward<SqsQueueT>(value); }
184 template<typename SqsQueueT = SqsQueueConfiguration>
185 Configuration& WithSqsQueue(SqsQueueT&& value) { SetSqsQueue(std::forward<SqsQueueT>(value)); return *this;}
187
189
192 inline const S3ExpressDirectoryBucketConfiguration& GetS3ExpressDirectoryBucket() const { return m_s3ExpressDirectoryBucket; }
193 inline bool S3ExpressDirectoryBucketHasBeenSet() const { return m_s3ExpressDirectoryBucketHasBeenSet; }
194 template<typename S3ExpressDirectoryBucketT = S3ExpressDirectoryBucketConfiguration>
195 void SetS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT&& value) { m_s3ExpressDirectoryBucketHasBeenSet = true; m_s3ExpressDirectoryBucket = std::forward<S3ExpressDirectoryBucketT>(value); }
196 template<typename S3ExpressDirectoryBucketT = S3ExpressDirectoryBucketConfiguration>
197 Configuration& WithS3ExpressDirectoryBucket(S3ExpressDirectoryBucketT&& value) { SetS3ExpressDirectoryBucket(std::forward<S3ExpressDirectoryBucketT>(value)); return *this;}
199
201
204 inline const DynamodbStreamConfiguration& GetDynamodbStream() const { return m_dynamodbStream; }
205 inline bool DynamodbStreamHasBeenSet() const { return m_dynamodbStreamHasBeenSet; }
206 template<typename DynamodbStreamT = DynamodbStreamConfiguration>
207 void SetDynamodbStream(DynamodbStreamT&& value) { m_dynamodbStreamHasBeenSet = true; m_dynamodbStream = std::forward<DynamodbStreamT>(value); }
208 template<typename DynamodbStreamT = DynamodbStreamConfiguration>
209 Configuration& WithDynamodbStream(DynamodbStreamT&& value) { SetDynamodbStream(std::forward<DynamodbStreamT>(value)); return *this;}
211
213
216 inline const DynamodbTableConfiguration& GetDynamodbTable() const { return m_dynamodbTable; }
217 inline bool DynamodbTableHasBeenSet() const { return m_dynamodbTableHasBeenSet; }
218 template<typename DynamodbTableT = DynamodbTableConfiguration>
219 void SetDynamodbTable(DynamodbTableT&& value) { m_dynamodbTableHasBeenSet = true; m_dynamodbTable = std::forward<DynamodbTableT>(value); }
220 template<typename DynamodbTableT = DynamodbTableConfiguration>
221 Configuration& WithDynamodbTable(DynamodbTableT&& value) { SetDynamodbTable(std::forward<DynamodbTableT>(value)); return *this;}
223 private:
224
225 EbsSnapshotConfiguration m_ebsSnapshot;
226 bool m_ebsSnapshotHasBeenSet = false;
227
228 EcrRepositoryConfiguration m_ecrRepository;
229 bool m_ecrRepositoryHasBeenSet = false;
230
231 IamRoleConfiguration m_iamRole;
232 bool m_iamRoleHasBeenSet = false;
233
234 EfsFileSystemConfiguration m_efsFileSystem;
235 bool m_efsFileSystemHasBeenSet = false;
236
237 KmsKeyConfiguration m_kmsKey;
238 bool m_kmsKeyHasBeenSet = false;
239
240 RdsDbClusterSnapshotConfiguration m_rdsDbClusterSnapshot;
241 bool m_rdsDbClusterSnapshotHasBeenSet = false;
242
243 RdsDbSnapshotConfiguration m_rdsDbSnapshot;
244 bool m_rdsDbSnapshotHasBeenSet = false;
245
246 SecretsManagerSecretConfiguration m_secretsManagerSecret;
247 bool m_secretsManagerSecretHasBeenSet = false;
248
249 S3BucketConfiguration m_s3Bucket;
250 bool m_s3BucketHasBeenSet = false;
251
252 SnsTopicConfiguration m_snsTopic;
253 bool m_snsTopicHasBeenSet = false;
254
255 SqsQueueConfiguration m_sqsQueue;
256 bool m_sqsQueueHasBeenSet = false;
257
258 S3ExpressDirectoryBucketConfiguration m_s3ExpressDirectoryBucket;
259 bool m_s3ExpressDirectoryBucketHasBeenSet = false;
260
261 DynamodbStreamConfiguration m_dynamodbStream;
262 bool m_dynamodbStreamHasBeenSet = false;
263
264 DynamodbTableConfiguration m_dynamodbTable;
265 bool m_dynamodbTableHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace AccessAnalyzer
270} // 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