AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
MongoDbSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/AuthMechanismValue.h>
10#include <aws/dms/model/AuthTypeValue.h>
11#include <aws/dms/model/NestingLevelValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService {
23namespace Model {
24
32 public:
33 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings() = default;
34 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetUsername() const { return m_username; }
43 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
44 template <typename UsernameT = Aws::String>
45 void SetUsername(UsernameT&& value) {
46 m_usernameHasBeenSet = true;
47 m_username = std::forward<UsernameT>(value);
48 }
49 template <typename UsernameT = Aws::String>
50 MongoDbSettings& WithUsername(UsernameT&& value) {
51 SetUsername(std::forward<UsernameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetPassword() const { return m_password; }
62 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
63 template <typename PasswordT = Aws::String>
64 void SetPassword(PasswordT&& value) {
65 m_passwordHasBeenSet = true;
66 m_password = std::forward<PasswordT>(value);
67 }
68 template <typename PasswordT = Aws::String>
69 MongoDbSettings& WithPassword(PasswordT&& value) {
70 SetPassword(std::forward<PasswordT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetServerName() const { return m_serverName; }
81 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
82 template <typename ServerNameT = Aws::String>
83 void SetServerName(ServerNameT&& value) {
84 m_serverNameHasBeenSet = true;
85 m_serverName = std::forward<ServerNameT>(value);
86 }
87 template <typename ServerNameT = Aws::String>
88 MongoDbSettings& WithServerName(ServerNameT&& value) {
89 SetServerName(std::forward<ServerNameT>(value));
90 return *this;
91 }
93
95
98 inline int GetPort() const { return m_port; }
99 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
100 inline void SetPort(int value) {
101 m_portHasBeenSet = true;
102 m_port = value;
103 }
104 inline MongoDbSettings& WithPort(int value) {
105 SetPort(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
115 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
116 template <typename DatabaseNameT = Aws::String>
117 void SetDatabaseName(DatabaseNameT&& value) {
118 m_databaseNameHasBeenSet = true;
119 m_databaseName = std::forward<DatabaseNameT>(value);
120 }
121 template <typename DatabaseNameT = Aws::String>
122 MongoDbSettings& WithDatabaseName(DatabaseNameT&& value) {
123 SetDatabaseName(std::forward<DatabaseNameT>(value));
124 return *this;
125 }
127
129
134 inline AuthTypeValue GetAuthType() const { return m_authType; }
135 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
136 inline void SetAuthType(AuthTypeValue value) {
137 m_authTypeHasBeenSet = true;
138 m_authType = value;
139 }
141 SetAuthType(value);
142 return *this;
143 }
145
147
154 inline AuthMechanismValue GetAuthMechanism() const { return m_authMechanism; }
155 inline bool AuthMechanismHasBeenSet() const { return m_authMechanismHasBeenSet; }
157 m_authMechanismHasBeenSet = true;
158 m_authMechanism = value;
159 }
161 SetAuthMechanism(value);
162 return *this;
163 }
165
167
172 inline NestingLevelValue GetNestingLevel() const { return m_nestingLevel; }
173 inline bool NestingLevelHasBeenSet() const { return m_nestingLevelHasBeenSet; }
175 m_nestingLevelHasBeenSet = true;
176 m_nestingLevel = value;
177 }
179 SetNestingLevel(value);
180 return *this;
181 }
183
185
192 inline const Aws::String& GetExtractDocId() const { return m_extractDocId; }
193 inline bool ExtractDocIdHasBeenSet() const { return m_extractDocIdHasBeenSet; }
194 template <typename ExtractDocIdT = Aws::String>
195 void SetExtractDocId(ExtractDocIdT&& value) {
196 m_extractDocIdHasBeenSet = true;
197 m_extractDocId = std::forward<ExtractDocIdT>(value);
198 }
199 template <typename ExtractDocIdT = Aws::String>
200 MongoDbSettings& WithExtractDocId(ExtractDocIdT&& value) {
201 SetExtractDocId(std::forward<ExtractDocIdT>(value));
202 return *this;
203 }
205
207
213 inline const Aws::String& GetDocsToInvestigate() const { return m_docsToInvestigate; }
214 inline bool DocsToInvestigateHasBeenSet() const { return m_docsToInvestigateHasBeenSet; }
215 template <typename DocsToInvestigateT = Aws::String>
216 void SetDocsToInvestigate(DocsToInvestigateT&& value) {
217 m_docsToInvestigateHasBeenSet = true;
218 m_docsToInvestigate = std::forward<DocsToInvestigateT>(value);
219 }
220 template <typename DocsToInvestigateT = Aws::String>
221 MongoDbSettings& WithDocsToInvestigate(DocsToInvestigateT&& value) {
222 SetDocsToInvestigate(std::forward<DocsToInvestigateT>(value));
223 return *this;
224 }
226
228
233 inline const Aws::String& GetAuthSource() const { return m_authSource; }
234 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
235 template <typename AuthSourceT = Aws::String>
236 void SetAuthSource(AuthSourceT&& value) {
237 m_authSourceHasBeenSet = true;
238 m_authSource = std::forward<AuthSourceT>(value);
239 }
240 template <typename AuthSourceT = Aws::String>
241 MongoDbSettings& WithAuthSource(AuthSourceT&& value) {
242 SetAuthSource(std::forward<AuthSourceT>(value));
243 return *this;
244 }
246
248
255 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
256 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
257 template <typename KmsKeyIdT = Aws::String>
258 void SetKmsKeyId(KmsKeyIdT&& value) {
259 m_kmsKeyIdHasBeenSet = true;
260 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
261 }
262 template <typename KmsKeyIdT = Aws::String>
263 MongoDbSettings& WithKmsKeyId(KmsKeyIdT&& value) {
264 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
265 return *this;
266 }
268
270
288 inline const Aws::String& GetSecretsManagerAccessRoleArn() const { return m_secretsManagerAccessRoleArn; }
289 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
290 template <typename SecretsManagerAccessRoleArnT = Aws::String>
291 void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
292 m_secretsManagerAccessRoleArnHasBeenSet = true;
293 m_secretsManagerAccessRoleArn = std::forward<SecretsManagerAccessRoleArnT>(value);
294 }
295 template <typename SecretsManagerAccessRoleArnT = Aws::String>
296 MongoDbSettings& WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
297 SetSecretsManagerAccessRoleArn(std::forward<SecretsManagerAccessRoleArnT>(value));
298 return *this;
299 }
301
303
308 inline const Aws::String& GetSecretsManagerSecretId() const { return m_secretsManagerSecretId; }
309 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
310 template <typename SecretsManagerSecretIdT = Aws::String>
311 void SetSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
312 m_secretsManagerSecretIdHasBeenSet = true;
313 m_secretsManagerSecretId = std::forward<SecretsManagerSecretIdT>(value);
314 }
315 template <typename SecretsManagerSecretIdT = Aws::String>
316 MongoDbSettings& WithSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
317 SetSecretsManagerSecretId(std::forward<SecretsManagerSecretIdT>(value));
318 return *this;
319 }
321
323
329 inline bool GetUseUpdateLookUp() const { return m_useUpdateLookUp; }
330 inline bool UseUpdateLookUpHasBeenSet() const { return m_useUpdateLookUpHasBeenSet; }
331 inline void SetUseUpdateLookUp(bool value) {
332 m_useUpdateLookUpHasBeenSet = true;
333 m_useUpdateLookUp = value;
334 }
336 SetUseUpdateLookUp(value);
337 return *this;
338 }
340
342
350 inline bool GetReplicateShardCollections() const { return m_replicateShardCollections; }
351 inline bool ReplicateShardCollectionsHasBeenSet() const { return m_replicateShardCollectionsHasBeenSet; }
352 inline void SetReplicateShardCollections(bool value) {
353 m_replicateShardCollectionsHasBeenSet = true;
354 m_replicateShardCollections = value;
355 }
358 return *this;
359 }
361 private:
362 Aws::String m_username;
363
364 Aws::String m_password;
365
366 Aws::String m_serverName;
367
368 int m_port{0};
369
370 Aws::String m_databaseName;
371
373
375
377
378 Aws::String m_extractDocId;
379
380 Aws::String m_docsToInvestigate;
381
382 Aws::String m_authSource;
383
384 Aws::String m_kmsKeyId;
385
386 Aws::String m_secretsManagerAccessRoleArn;
387
388 Aws::String m_secretsManagerSecretId;
389
390 bool m_useUpdateLookUp{false};
391
392 bool m_replicateShardCollections{false};
393 bool m_usernameHasBeenSet = false;
394 bool m_passwordHasBeenSet = false;
395 bool m_serverNameHasBeenSet = false;
396 bool m_portHasBeenSet = false;
397 bool m_databaseNameHasBeenSet = false;
398 bool m_authTypeHasBeenSet = false;
399 bool m_authMechanismHasBeenSet = false;
400 bool m_nestingLevelHasBeenSet = false;
401 bool m_extractDocIdHasBeenSet = false;
402 bool m_docsToInvestigateHasBeenSet = false;
403 bool m_authSourceHasBeenSet = false;
404 bool m_kmsKeyIdHasBeenSet = false;
405 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
406 bool m_secretsManagerSecretIdHasBeenSet = false;
407 bool m_useUpdateLookUpHasBeenSet = false;
408 bool m_replicateShardCollectionsHasBeenSet = false;
409};
410
411} // namespace Model
412} // namespace DatabaseMigrationService
413} // namespace Aws
MongoDbSettings & WithSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
void SetDocsToInvestigate(DocsToInvestigateT &&value)
MongoDbSettings & WithServerName(ServerNameT &&value)
MongoDbSettings & WithAuthType(AuthTypeValue value)
MongoDbSettings & WithExtractDocId(ExtractDocIdT &&value)
MongoDbSettings & WithUsername(UsernameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings()=default
MongoDbSettings & WithDocsToInvestigate(DocsToInvestigateT &&value)
MongoDbSettings & WithReplicateShardCollections(bool value)
MongoDbSettings & WithPassword(PasswordT &&value)
void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
MongoDbSettings & WithKmsKeyId(KmsKeyIdT &&value)
MongoDbSettings & WithDatabaseName(DatabaseNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings(Aws::Utils::Json::JsonView jsonValue)
MongoDbSettings & WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
MongoDbSettings & WithAuthSource(AuthSourceT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MongoDbSettings & WithAuthMechanism(AuthMechanismValue value)
void SetSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
MongoDbSettings & WithNestingLevel(NestingLevelValue value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue