AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocDbSettings.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/NestingLevelValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings();
37 AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUsername() const{ return m_username; }
47 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
48 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
50 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
51 inline DocDbSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
52 inline DocDbSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
53 inline DocDbSettings& WithUsername(const char* value) { SetUsername(value); return *this;}
55
57
61 inline const Aws::String& GetPassword() const{ return m_password; }
62 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
63 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
64 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
65 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
66 inline DocDbSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
67 inline DocDbSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
68 inline DocDbSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
70
72
75 inline const Aws::String& GetServerName() const{ return m_serverName; }
76 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
77 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
78 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
79 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
80 inline DocDbSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
81 inline DocDbSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
82 inline DocDbSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
84
86
89 inline int GetPort() const{ return m_port; }
90 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
91 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
92 inline DocDbSettings& WithPort(int value) { SetPort(value); return *this;}
94
96
99 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
100 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
101 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
102 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
103 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
104 inline DocDbSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
105 inline DocDbSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
106 inline DocDbSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
108
110
115 inline const NestingLevelValue& GetNestingLevel() const{ return m_nestingLevel; }
116 inline bool NestingLevelHasBeenSet() const { return m_nestingLevelHasBeenSet; }
117 inline void SetNestingLevel(const NestingLevelValue& value) { m_nestingLevelHasBeenSet = true; m_nestingLevel = value; }
118 inline void SetNestingLevel(NestingLevelValue&& value) { m_nestingLevelHasBeenSet = true; m_nestingLevel = std::move(value); }
119 inline DocDbSettings& WithNestingLevel(const NestingLevelValue& value) { SetNestingLevel(value); return *this;}
120 inline DocDbSettings& WithNestingLevel(NestingLevelValue&& value) { SetNestingLevel(std::move(value)); return *this;}
122
124
129 inline bool GetExtractDocId() const{ return m_extractDocId; }
130 inline bool ExtractDocIdHasBeenSet() const { return m_extractDocIdHasBeenSet; }
131 inline void SetExtractDocId(bool value) { m_extractDocIdHasBeenSet = true; m_extractDocId = value; }
132 inline DocDbSettings& WithExtractDocId(bool value) { SetExtractDocId(value); return *this;}
134
136
142 inline int GetDocsToInvestigate() const{ return m_docsToInvestigate; }
143 inline bool DocsToInvestigateHasBeenSet() const { return m_docsToInvestigateHasBeenSet; }
144 inline void SetDocsToInvestigate(int value) { m_docsToInvestigateHasBeenSet = true; m_docsToInvestigate = value; }
145 inline DocDbSettings& WithDocsToInvestigate(int value) { SetDocsToInvestigate(value); return *this;}
147
149
156 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
157 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
158 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
159 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
160 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
161 inline DocDbSettings& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
162 inline DocDbSettings& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
163 inline DocDbSettings& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
165
167
185 inline const Aws::String& GetSecretsManagerAccessRoleArn() const{ return m_secretsManagerAccessRoleArn; }
186 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
187 inline void SetSecretsManagerAccessRoleArn(const Aws::String& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = value; }
188 inline void SetSecretsManagerAccessRoleArn(Aws::String&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::move(value); }
189 inline void SetSecretsManagerAccessRoleArn(const char* value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn.assign(value); }
192 inline DocDbSettings& WithSecretsManagerAccessRoleArn(const char* value) { SetSecretsManagerAccessRoleArn(value); return *this;}
194
196
201 inline const Aws::String& GetSecretsManagerSecretId() const{ return m_secretsManagerSecretId; }
202 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
203 inline void SetSecretsManagerSecretId(const Aws::String& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = value; }
204 inline void SetSecretsManagerSecretId(Aws::String&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::move(value); }
205 inline void SetSecretsManagerSecretId(const char* value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId.assign(value); }
207 inline DocDbSettings& WithSecretsManagerSecretId(Aws::String&& value) { SetSecretsManagerSecretId(std::move(value)); return *this;}
208 inline DocDbSettings& WithSecretsManagerSecretId(const char* value) { SetSecretsManagerSecretId(value); return *this;}
210
212
218 inline bool GetUseUpdateLookUp() const{ return m_useUpdateLookUp; }
219 inline bool UseUpdateLookUpHasBeenSet() const { return m_useUpdateLookUpHasBeenSet; }
220 inline void SetUseUpdateLookUp(bool value) { m_useUpdateLookUpHasBeenSet = true; m_useUpdateLookUp = value; }
221 inline DocDbSettings& WithUseUpdateLookUp(bool value) { SetUseUpdateLookUp(value); return *this;}
223
225
233 inline bool GetReplicateShardCollections() const{ return m_replicateShardCollections; }
234 inline bool ReplicateShardCollectionsHasBeenSet() const { return m_replicateShardCollectionsHasBeenSet; }
235 inline void SetReplicateShardCollections(bool value) { m_replicateShardCollectionsHasBeenSet = true; m_replicateShardCollections = value; }
238 private:
239
240 Aws::String m_username;
241 bool m_usernameHasBeenSet = false;
242
243 Aws::String m_password;
244 bool m_passwordHasBeenSet = false;
245
246 Aws::String m_serverName;
247 bool m_serverNameHasBeenSet = false;
248
249 int m_port;
250 bool m_portHasBeenSet = false;
251
252 Aws::String m_databaseName;
253 bool m_databaseNameHasBeenSet = false;
254
255 NestingLevelValue m_nestingLevel;
256 bool m_nestingLevelHasBeenSet = false;
257
258 bool m_extractDocId;
259 bool m_extractDocIdHasBeenSet = false;
260
261 int m_docsToInvestigate;
262 bool m_docsToInvestigateHasBeenSet = false;
263
264 Aws::String m_kmsKeyId;
265 bool m_kmsKeyIdHasBeenSet = false;
266
267 Aws::String m_secretsManagerAccessRoleArn;
268 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
269
270 Aws::String m_secretsManagerSecretId;
271 bool m_secretsManagerSecretIdHasBeenSet = false;
272
273 bool m_useUpdateLookUp;
274 bool m_useUpdateLookUpHasBeenSet = false;
275
276 bool m_replicateShardCollections;
277 bool m_replicateShardCollectionsHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace DatabaseMigrationService
282} // namespace Aws
const NestingLevelValue & GetNestingLevel() const
DocDbSettings & WithSecretsManagerSecretId(const Aws::String &value)
DocDbSettings & WithPassword(const Aws::String &value)
DocDbSettings & WithKmsKeyId(const char *value)
DocDbSettings & WithDatabaseName(const char *value)
DocDbSettings & WithDatabaseName(const Aws::String &value)
DocDbSettings & WithNestingLevel(const NestingLevelValue &value)
const Aws::String & GetSecretsManagerAccessRoleArn() const
DocDbSettings & WithUsername(const Aws::String &value)
DocDbSettings & WithPassword(const char *value)
DocDbSettings & WithDatabaseName(Aws::String &&value)
DocDbSettings & WithReplicateShardCollections(bool value)
DocDbSettings & WithSecretsManagerAccessRoleArn(const Aws::String &value)
void SetNestingLevel(const NestingLevelValue &value)
DocDbSettings & WithNestingLevel(NestingLevelValue &&value)
DocDbSettings & WithUsername(Aws::String &&value)
DocDbSettings & WithUsername(const char *value)
void SetNestingLevel(NestingLevelValue &&value)
DocDbSettings & WithSecretsManagerAccessRoleArn(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings()
DocDbSettings & WithServerName(Aws::String &&value)
DocDbSettings & WithSecretsManagerSecretId(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DocDbSettings & WithServerName(const char *value)
DocDbSettings & WithKmsKeyId(Aws::String &&value)
DocDbSettings & WithKmsKeyId(const Aws::String &value)
DocDbSettings & WithSecretsManagerSecretId(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API DocDbSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DocDbSettings & WithSecretsManagerAccessRoleArn(Aws::String &&value)
DocDbSettings & WithPassword(Aws::String &&value)
void SetSecretsManagerSecretId(const Aws::String &value)
void SetSecretsManagerAccessRoleArn(const Aws::String &value)
DocDbSettings & WithServerName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue