AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
190 inline const Aws::String& GetExtractDocId() const { return m_extractDocId; }
191 inline bool ExtractDocIdHasBeenSet() const { return m_extractDocIdHasBeenSet; }
192 template <typename ExtractDocIdT = Aws::String>
193 void SetExtractDocId(ExtractDocIdT&& value) {
194 m_extractDocIdHasBeenSet = true;
195 m_extractDocId = std::forward<ExtractDocIdT>(value);
196 }
197 template <typename ExtractDocIdT = Aws::String>
198 MongoDbSettings& WithExtractDocId(ExtractDocIdT&& value) {
199 SetExtractDocId(std::forward<ExtractDocIdT>(value));
200 return *this;
201 }
203
205
211 inline const Aws::String& GetDocsToInvestigate() const { return m_docsToInvestigate; }
212 inline bool DocsToInvestigateHasBeenSet() const { return m_docsToInvestigateHasBeenSet; }
213 template <typename DocsToInvestigateT = Aws::String>
214 void SetDocsToInvestigate(DocsToInvestigateT&& value) {
215 m_docsToInvestigateHasBeenSet = true;
216 m_docsToInvestigate = std::forward<DocsToInvestigateT>(value);
217 }
218 template <typename DocsToInvestigateT = Aws::String>
219 MongoDbSettings& WithDocsToInvestigate(DocsToInvestigateT&& value) {
220 SetDocsToInvestigate(std::forward<DocsToInvestigateT>(value));
221 return *this;
222 }
224
226
231 inline const Aws::String& GetAuthSource() const { return m_authSource; }
232 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
233 template <typename AuthSourceT = Aws::String>
234 void SetAuthSource(AuthSourceT&& value) {
235 m_authSourceHasBeenSet = true;
236 m_authSource = std::forward<AuthSourceT>(value);
237 }
238 template <typename AuthSourceT = Aws::String>
239 MongoDbSettings& WithAuthSource(AuthSourceT&& value) {
240 SetAuthSource(std::forward<AuthSourceT>(value));
241 return *this;
242 }
244
246
253 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
254 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
255 template <typename KmsKeyIdT = Aws::String>
256 void SetKmsKeyId(KmsKeyIdT&& value) {
257 m_kmsKeyIdHasBeenSet = true;
258 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
259 }
260 template <typename KmsKeyIdT = Aws::String>
261 MongoDbSettings& WithKmsKeyId(KmsKeyIdT&& value) {
262 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
263 return *this;
264 }
266
268
286 inline const Aws::String& GetSecretsManagerAccessRoleArn() const { return m_secretsManagerAccessRoleArn; }
287 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
288 template <typename SecretsManagerAccessRoleArnT = Aws::String>
289 void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
290 m_secretsManagerAccessRoleArnHasBeenSet = true;
291 m_secretsManagerAccessRoleArn = std::forward<SecretsManagerAccessRoleArnT>(value);
292 }
293 template <typename SecretsManagerAccessRoleArnT = Aws::String>
294 MongoDbSettings& WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
295 SetSecretsManagerAccessRoleArn(std::forward<SecretsManagerAccessRoleArnT>(value));
296 return *this;
297 }
299
301
306 inline const Aws::String& GetSecretsManagerSecretId() const { return m_secretsManagerSecretId; }
307 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
308 template <typename SecretsManagerSecretIdT = Aws::String>
309 void SetSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
310 m_secretsManagerSecretIdHasBeenSet = true;
311 m_secretsManagerSecretId = std::forward<SecretsManagerSecretIdT>(value);
312 }
313 template <typename SecretsManagerSecretIdT = Aws::String>
314 MongoDbSettings& WithSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
315 SetSecretsManagerSecretId(std::forward<SecretsManagerSecretIdT>(value));
316 return *this;
317 }
319
321
327 inline bool GetUseUpdateLookUp() const { return m_useUpdateLookUp; }
328 inline bool UseUpdateLookUpHasBeenSet() const { return m_useUpdateLookUpHasBeenSet; }
329 inline void SetUseUpdateLookUp(bool value) {
330 m_useUpdateLookUpHasBeenSet = true;
331 m_useUpdateLookUp = value;
332 }
334 SetUseUpdateLookUp(value);
335 return *this;
336 }
338
340
348 inline bool GetReplicateShardCollections() const { return m_replicateShardCollections; }
349 inline bool ReplicateShardCollectionsHasBeenSet() const { return m_replicateShardCollectionsHasBeenSet; }
350 inline void SetReplicateShardCollections(bool value) {
351 m_replicateShardCollectionsHasBeenSet = true;
352 m_replicateShardCollections = value;
353 }
356 return *this;
357 }
359 private:
360 Aws::String m_username;
361
362 Aws::String m_password;
363
364 Aws::String m_serverName;
365
366 int m_port{0};
367
368 Aws::String m_databaseName;
369
371
373
375
376 Aws::String m_extractDocId;
377
378 Aws::String m_docsToInvestigate;
379
380 Aws::String m_authSource;
381
382 Aws::String m_kmsKeyId;
383
384 Aws::String m_secretsManagerAccessRoleArn;
385
386 Aws::String m_secretsManagerSecretId;
387
388 bool m_useUpdateLookUp{false};
389
390 bool m_replicateShardCollections{false};
391 bool m_usernameHasBeenSet = false;
392 bool m_passwordHasBeenSet = false;
393 bool m_serverNameHasBeenSet = false;
394 bool m_portHasBeenSet = false;
395 bool m_databaseNameHasBeenSet = false;
396 bool m_authTypeHasBeenSet = false;
397 bool m_authMechanismHasBeenSet = false;
398 bool m_nestingLevelHasBeenSet = false;
399 bool m_extractDocIdHasBeenSet = false;
400 bool m_docsToInvestigateHasBeenSet = false;
401 bool m_authSourceHasBeenSet = false;
402 bool m_kmsKeyIdHasBeenSet = false;
403 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
404 bool m_secretsManagerSecretIdHasBeenSet = false;
405 bool m_useUpdateLookUpHasBeenSet = false;
406 bool m_replicateShardCollectionsHasBeenSet = false;
407};
408
409} // namespace Model
410} // namespace DatabaseMigrationService
411} // 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