AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MongoDbSettings.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/model/AuthTypeValue.h>
10#include <aws/dms/model/AuthMechanismValue.h>
11#include <aws/dms/model/NestingLevelValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DatabaseMigrationService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings();
39 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetUsername() const{ return m_username; }
49 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
50 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
51 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
52 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
53 inline MongoDbSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
54 inline MongoDbSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
55 inline MongoDbSettings& WithUsername(const char* value) { SetUsername(value); return *this;}
57
59
63 inline const Aws::String& GetPassword() const{ return m_password; }
64 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
65 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
66 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
67 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
68 inline MongoDbSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
69 inline MongoDbSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
70 inline MongoDbSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
72
74
78 inline const Aws::String& GetServerName() const{ return m_serverName; }
79 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
80 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
81 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
82 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
83 inline MongoDbSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
84 inline MongoDbSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
85 inline MongoDbSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
87
89
92 inline int GetPort() const{ return m_port; }
93 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
95 inline MongoDbSettings& WithPort(int value) { SetPort(value); return *this;}
97
99
102 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
103 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
104 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
105 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
106 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
107 inline MongoDbSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
108 inline MongoDbSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
109 inline MongoDbSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
111
113
118 inline const AuthTypeValue& GetAuthType() const{ return m_authType; }
119 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
120 inline void SetAuthType(const AuthTypeValue& value) { m_authTypeHasBeenSet = true; m_authType = value; }
121 inline void SetAuthType(AuthTypeValue&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
122 inline MongoDbSettings& WithAuthType(const AuthTypeValue& value) { SetAuthType(value); return *this;}
123 inline MongoDbSettings& WithAuthType(AuthTypeValue&& value) { SetAuthType(std::move(value)); return *this;}
125
127
134 inline const AuthMechanismValue& GetAuthMechanism() const{ return m_authMechanism; }
135 inline bool AuthMechanismHasBeenSet() const { return m_authMechanismHasBeenSet; }
136 inline void SetAuthMechanism(const AuthMechanismValue& value) { m_authMechanismHasBeenSet = true; m_authMechanism = value; }
137 inline void SetAuthMechanism(AuthMechanismValue&& value) { m_authMechanismHasBeenSet = true; m_authMechanism = std::move(value); }
138 inline MongoDbSettings& WithAuthMechanism(const AuthMechanismValue& value) { SetAuthMechanism(value); return *this;}
139 inline MongoDbSettings& WithAuthMechanism(AuthMechanismValue&& value) { SetAuthMechanism(std::move(value)); return *this;}
141
143
148 inline const NestingLevelValue& GetNestingLevel() const{ return m_nestingLevel; }
149 inline bool NestingLevelHasBeenSet() const { return m_nestingLevelHasBeenSet; }
150 inline void SetNestingLevel(const NestingLevelValue& value) { m_nestingLevelHasBeenSet = true; m_nestingLevel = value; }
151 inline void SetNestingLevel(NestingLevelValue&& value) { m_nestingLevelHasBeenSet = true; m_nestingLevel = std::move(value); }
152 inline MongoDbSettings& WithNestingLevel(const NestingLevelValue& value) { SetNestingLevel(value); return *this;}
153 inline MongoDbSettings& WithNestingLevel(NestingLevelValue&& value) { SetNestingLevel(std::move(value)); return *this;}
155
157
162 inline const Aws::String& GetExtractDocId() const{ return m_extractDocId; }
163 inline bool ExtractDocIdHasBeenSet() const { return m_extractDocIdHasBeenSet; }
164 inline void SetExtractDocId(const Aws::String& value) { m_extractDocIdHasBeenSet = true; m_extractDocId = value; }
165 inline void SetExtractDocId(Aws::String&& value) { m_extractDocIdHasBeenSet = true; m_extractDocId = std::move(value); }
166 inline void SetExtractDocId(const char* value) { m_extractDocIdHasBeenSet = true; m_extractDocId.assign(value); }
167 inline MongoDbSettings& WithExtractDocId(const Aws::String& value) { SetExtractDocId(value); return *this;}
168 inline MongoDbSettings& WithExtractDocId(Aws::String&& value) { SetExtractDocId(std::move(value)); return *this;}
169 inline MongoDbSettings& WithExtractDocId(const char* value) { SetExtractDocId(value); return *this;}
171
173
179 inline const Aws::String& GetDocsToInvestigate() const{ return m_docsToInvestigate; }
180 inline bool DocsToInvestigateHasBeenSet() const { return m_docsToInvestigateHasBeenSet; }
181 inline void SetDocsToInvestigate(const Aws::String& value) { m_docsToInvestigateHasBeenSet = true; m_docsToInvestigate = value; }
182 inline void SetDocsToInvestigate(Aws::String&& value) { m_docsToInvestigateHasBeenSet = true; m_docsToInvestigate = std::move(value); }
183 inline void SetDocsToInvestigate(const char* value) { m_docsToInvestigateHasBeenSet = true; m_docsToInvestigate.assign(value); }
184 inline MongoDbSettings& WithDocsToInvestigate(const Aws::String& value) { SetDocsToInvestigate(value); return *this;}
185 inline MongoDbSettings& WithDocsToInvestigate(Aws::String&& value) { SetDocsToInvestigate(std::move(value)); return *this;}
186 inline MongoDbSettings& WithDocsToInvestigate(const char* value) { SetDocsToInvestigate(value); return *this;}
188
190
195 inline const Aws::String& GetAuthSource() const{ return m_authSource; }
196 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
197 inline void SetAuthSource(const Aws::String& value) { m_authSourceHasBeenSet = true; m_authSource = value; }
198 inline void SetAuthSource(Aws::String&& value) { m_authSourceHasBeenSet = true; m_authSource = std::move(value); }
199 inline void SetAuthSource(const char* value) { m_authSourceHasBeenSet = true; m_authSource.assign(value); }
200 inline MongoDbSettings& WithAuthSource(const Aws::String& value) { SetAuthSource(value); return *this;}
201 inline MongoDbSettings& WithAuthSource(Aws::String&& value) { SetAuthSource(std::move(value)); return *this;}
202 inline MongoDbSettings& WithAuthSource(const char* value) { SetAuthSource(value); return *this;}
204
206
213 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
214 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
215 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
216 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
217 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
218 inline MongoDbSettings& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
219 inline MongoDbSettings& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
220 inline MongoDbSettings& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
222
224
242 inline const Aws::String& GetSecretsManagerAccessRoleArn() const{ return m_secretsManagerAccessRoleArn; }
243 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
244 inline void SetSecretsManagerAccessRoleArn(const Aws::String& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = value; }
245 inline void SetSecretsManagerAccessRoleArn(Aws::String&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::move(value); }
246 inline void SetSecretsManagerAccessRoleArn(const char* value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn.assign(value); }
249 inline MongoDbSettings& WithSecretsManagerAccessRoleArn(const char* value) { SetSecretsManagerAccessRoleArn(value); return *this;}
251
253
258 inline const Aws::String& GetSecretsManagerSecretId() const{ return m_secretsManagerSecretId; }
259 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
260 inline void SetSecretsManagerSecretId(const Aws::String& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = value; }
261 inline void SetSecretsManagerSecretId(Aws::String&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::move(value); }
262 inline void SetSecretsManagerSecretId(const char* value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId.assign(value); }
264 inline MongoDbSettings& WithSecretsManagerSecretId(Aws::String&& value) { SetSecretsManagerSecretId(std::move(value)); return *this;}
265 inline MongoDbSettings& WithSecretsManagerSecretId(const char* value) { SetSecretsManagerSecretId(value); return *this;}
267
269
275 inline bool GetUseUpdateLookUp() const{ return m_useUpdateLookUp; }
276 inline bool UseUpdateLookUpHasBeenSet() const { return m_useUpdateLookUpHasBeenSet; }
277 inline void SetUseUpdateLookUp(bool value) { m_useUpdateLookUpHasBeenSet = true; m_useUpdateLookUp = value; }
278 inline MongoDbSettings& WithUseUpdateLookUp(bool value) { SetUseUpdateLookUp(value); return *this;}
280
282
290 inline bool GetReplicateShardCollections() const{ return m_replicateShardCollections; }
291 inline bool ReplicateShardCollectionsHasBeenSet() const { return m_replicateShardCollectionsHasBeenSet; }
292 inline void SetReplicateShardCollections(bool value) { m_replicateShardCollectionsHasBeenSet = true; m_replicateShardCollections = value; }
295 private:
296
297 Aws::String m_username;
298 bool m_usernameHasBeenSet = false;
299
300 Aws::String m_password;
301 bool m_passwordHasBeenSet = false;
302
303 Aws::String m_serverName;
304 bool m_serverNameHasBeenSet = false;
305
306 int m_port;
307 bool m_portHasBeenSet = false;
308
309 Aws::String m_databaseName;
310 bool m_databaseNameHasBeenSet = false;
311
312 AuthTypeValue m_authType;
313 bool m_authTypeHasBeenSet = false;
314
315 AuthMechanismValue m_authMechanism;
316 bool m_authMechanismHasBeenSet = false;
317
318 NestingLevelValue m_nestingLevel;
319 bool m_nestingLevelHasBeenSet = false;
320
321 Aws::String m_extractDocId;
322 bool m_extractDocIdHasBeenSet = false;
323
324 Aws::String m_docsToInvestigate;
325 bool m_docsToInvestigateHasBeenSet = false;
326
327 Aws::String m_authSource;
328 bool m_authSourceHasBeenSet = false;
329
330 Aws::String m_kmsKeyId;
331 bool m_kmsKeyIdHasBeenSet = false;
332
333 Aws::String m_secretsManagerAccessRoleArn;
334 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
335
336 Aws::String m_secretsManagerSecretId;
337 bool m_secretsManagerSecretIdHasBeenSet = false;
338
339 bool m_useUpdateLookUp;
340 bool m_useUpdateLookUpHasBeenSet = false;
341
342 bool m_replicateShardCollections;
343 bool m_replicateShardCollectionsHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace DatabaseMigrationService
348} // namespace Aws
MongoDbSettings & WithExtractDocId(const char *value)
MongoDbSettings & WithAuthSource(const char *value)
MongoDbSettings & WithSecretsManagerSecretId(const char *value)
MongoDbSettings & WithKmsKeyId(const Aws::String &value)
MongoDbSettings & WithAuthType(const AuthTypeValue &value)
MongoDbSettings & WithUsername(const Aws::String &value)
MongoDbSettings & WithPassword(const char *value)
MongoDbSettings & WithDocsToInvestigate(const Aws::String &value)
MongoDbSettings & WithPassword(const Aws::String &value)
MongoDbSettings & WithAuthMechanism(const AuthMechanismValue &value)
MongoDbSettings & WithKmsKeyId(const char *value)
MongoDbSettings & WithPassword(Aws::String &&value)
MongoDbSettings & WithExtractDocId(Aws::String &&value)
MongoDbSettings & WithUsername(Aws::String &&value)
MongoDbSettings & WithUsername(const char *value)
MongoDbSettings & WithKmsKeyId(Aws::String &&value)
MongoDbSettings & WithNestingLevel(const NestingLevelValue &value)
void SetNestingLevel(const NestingLevelValue &value)
MongoDbSettings & WithSecretsManagerSecretId(const Aws::String &value)
MongoDbSettings & WithServerName(Aws::String &&value)
MongoDbSettings & WithDocsToInvestigate(const char *value)
MongoDbSettings & WithReplicateShardCollections(bool value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings()
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
MongoDbSettings & WithServerName(const Aws::String &value)
MongoDbSettings & WithDocsToInvestigate(Aws::String &&value)
MongoDbSettings & WithDatabaseName(Aws::String &&value)
void SetAuthMechanism(const AuthMechanismValue &value)
MongoDbSettings & WithAuthMechanism(AuthMechanismValue &&value)
MongoDbSettings & WithExtractDocId(const Aws::String &value)
void SetSecretsManagerAccessRoleArn(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbSettings(Aws::Utils::Json::JsonView jsonValue)
MongoDbSettings & WithNestingLevel(NestingLevelValue &&value)
MongoDbSettings & WithSecretsManagerAccessRoleArn(const char *value)
MongoDbSettings & WithDatabaseName(const char *value)
MongoDbSettings & WithSecretsManagerAccessRoleArn(Aws::String &&value)
MongoDbSettings & WithSecretsManagerSecretId(Aws::String &&value)
MongoDbSettings & WithAuthSource(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MongoDbSettings & WithSecretsManagerAccessRoleArn(const Aws::String &value)
MongoDbSettings & WithAuthSource(Aws::String &&value)
MongoDbSettings & WithServerName(const char *value)
MongoDbSettings & WithAuthType(AuthTypeValue &&value)
MongoDbSettings & WithDatabaseName(const Aws::String &value)
const AuthMechanismValue & GetAuthMechanism() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue