AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MySQLSettings.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/TargetDbType.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 MySQLSettings();
37 AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetAfterConnectScript() const{ return m_afterConnectScript; }
50 inline bool AfterConnectScriptHasBeenSet() const { return m_afterConnectScriptHasBeenSet; }
51 inline void SetAfterConnectScript(const Aws::String& value) { m_afterConnectScriptHasBeenSet = true; m_afterConnectScript = value; }
52 inline void SetAfterConnectScript(Aws::String&& value) { m_afterConnectScriptHasBeenSet = true; m_afterConnectScript = std::move(value); }
53 inline void SetAfterConnectScript(const char* value) { m_afterConnectScriptHasBeenSet = true; m_afterConnectScript.assign(value); }
54 inline MySQLSettings& WithAfterConnectScript(const Aws::String& value) { SetAfterConnectScript(value); return *this;}
55 inline MySQLSettings& WithAfterConnectScript(Aws::String&& value) { SetAfterConnectScript(std::move(value)); return *this;}
56 inline MySQLSettings& WithAfterConnectScript(const char* value) { SetAfterConnectScript(value); return *this;}
58
60
66 inline bool GetCleanSourceMetadataOnMismatch() const{ return m_cleanSourceMetadataOnMismatch; }
67 inline bool CleanSourceMetadataOnMismatchHasBeenSet() const { return m_cleanSourceMetadataOnMismatchHasBeenSet; }
68 inline void SetCleanSourceMetadataOnMismatch(bool value) { m_cleanSourceMetadataOnMismatchHasBeenSet = true; m_cleanSourceMetadataOnMismatch = value; }
71
73
82 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
83 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
84 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
85 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
86 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
87 inline MySQLSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
88 inline MySQLSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
89 inline MySQLSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
91
93
99 inline int GetEventsPollInterval() const{ return m_eventsPollInterval; }
100 inline bool EventsPollIntervalHasBeenSet() const { return m_eventsPollIntervalHasBeenSet; }
101 inline void SetEventsPollInterval(int value) { m_eventsPollIntervalHasBeenSet = true; m_eventsPollInterval = value; }
102 inline MySQLSettings& WithEventsPollInterval(int value) { SetEventsPollInterval(value); return *this;}
104
106
113 inline const TargetDbType& GetTargetDbType() const{ return m_targetDbType; }
114 inline bool TargetDbTypeHasBeenSet() const { return m_targetDbTypeHasBeenSet; }
115 inline void SetTargetDbType(const TargetDbType& value) { m_targetDbTypeHasBeenSet = true; m_targetDbType = value; }
116 inline void SetTargetDbType(TargetDbType&& value) { m_targetDbTypeHasBeenSet = true; m_targetDbType = std::move(value); }
117 inline MySQLSettings& WithTargetDbType(const TargetDbType& value) { SetTargetDbType(value); return *this;}
118 inline MySQLSettings& WithTargetDbType(TargetDbType&& value) { SetTargetDbType(std::move(value)); return *this;}
120
122
126 inline int GetMaxFileSize() const{ return m_maxFileSize; }
127 inline bool MaxFileSizeHasBeenSet() const { return m_maxFileSizeHasBeenSet; }
128 inline void SetMaxFileSize(int value) { m_maxFileSizeHasBeenSet = true; m_maxFileSize = value; }
129 inline MySQLSettings& WithMaxFileSize(int value) { SetMaxFileSize(value); return *this;}
131
133
141 inline int GetParallelLoadThreads() const{ return m_parallelLoadThreads; }
142 inline bool ParallelLoadThreadsHasBeenSet() const { return m_parallelLoadThreadsHasBeenSet; }
143 inline void SetParallelLoadThreads(int value) { m_parallelLoadThreadsHasBeenSet = true; m_parallelLoadThreads = value; }
144 inline MySQLSettings& WithParallelLoadThreads(int value) { SetParallelLoadThreads(value); return *this;}
146
148
151 inline const Aws::String& GetPassword() const{ return m_password; }
152 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
153 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
154 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
155 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
156 inline MySQLSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
157 inline MySQLSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
158 inline MySQLSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
160
162
165 inline int GetPort() const{ return m_port; }
166 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
167 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
168 inline MySQLSettings& WithPort(int value) { SetPort(value); return *this;}
170
172
182 inline const Aws::String& GetServerName() const{ return m_serverName; }
183 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
184 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
185 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
186 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
187 inline MySQLSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
188 inline MySQLSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
189 inline MySQLSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
191
193
198 inline const Aws::String& GetServerTimezone() const{ return m_serverTimezone; }
199 inline bool ServerTimezoneHasBeenSet() const { return m_serverTimezoneHasBeenSet; }
200 inline void SetServerTimezone(const Aws::String& value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone = value; }
201 inline void SetServerTimezone(Aws::String&& value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone = std::move(value); }
202 inline void SetServerTimezone(const char* value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone.assign(value); }
203 inline MySQLSettings& WithServerTimezone(const Aws::String& value) { SetServerTimezone(value); return *this;}
204 inline MySQLSettings& WithServerTimezone(Aws::String&& value) { SetServerTimezone(std::move(value)); return *this;}
205 inline MySQLSettings& WithServerTimezone(const char* value) { SetServerTimezone(value); return *this;}
207
209
212 inline const Aws::String& GetUsername() const{ return m_username; }
213 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
214 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
215 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
216 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
217 inline MySQLSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
218 inline MySQLSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
219 inline MySQLSettings& WithUsername(const char* value) { SetUsername(value); return *this;}
221
223
241 inline const Aws::String& GetSecretsManagerAccessRoleArn() const{ return m_secretsManagerAccessRoleArn; }
242 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
243 inline void SetSecretsManagerAccessRoleArn(const Aws::String& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = value; }
244 inline void SetSecretsManagerAccessRoleArn(Aws::String&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::move(value); }
245 inline void SetSecretsManagerAccessRoleArn(const char* value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn.assign(value); }
248 inline MySQLSettings& WithSecretsManagerAccessRoleArn(const char* value) { SetSecretsManagerAccessRoleArn(value); return *this;}
250
252
257 inline const Aws::String& GetSecretsManagerSecretId() const{ return m_secretsManagerSecretId; }
258 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
259 inline void SetSecretsManagerSecretId(const Aws::String& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = value; }
260 inline void SetSecretsManagerSecretId(Aws::String&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::move(value); }
261 inline void SetSecretsManagerSecretId(const char* value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId.assign(value); }
263 inline MySQLSettings& WithSecretsManagerSecretId(Aws::String&& value) { SetSecretsManagerSecretId(std::move(value)); return *this;}
264 inline MySQLSettings& WithSecretsManagerSecretId(const char* value) { SetSecretsManagerSecretId(value); return *this;}
266
268
272 inline int GetExecuteTimeout() const{ return m_executeTimeout; }
273 inline bool ExecuteTimeoutHasBeenSet() const { return m_executeTimeoutHasBeenSet; }
274 inline void SetExecuteTimeout(int value) { m_executeTimeoutHasBeenSet = true; m_executeTimeout = value; }
275 inline MySQLSettings& WithExecuteTimeout(int value) { SetExecuteTimeout(value); return *this;}
277 private:
278
279 Aws::String m_afterConnectScript;
280 bool m_afterConnectScriptHasBeenSet = false;
281
282 bool m_cleanSourceMetadataOnMismatch;
283 bool m_cleanSourceMetadataOnMismatchHasBeenSet = false;
284
285 Aws::String m_databaseName;
286 bool m_databaseNameHasBeenSet = false;
287
288 int m_eventsPollInterval;
289 bool m_eventsPollIntervalHasBeenSet = false;
290
291 TargetDbType m_targetDbType;
292 bool m_targetDbTypeHasBeenSet = false;
293
294 int m_maxFileSize;
295 bool m_maxFileSizeHasBeenSet = false;
296
297 int m_parallelLoadThreads;
298 bool m_parallelLoadThreadsHasBeenSet = false;
299
300 Aws::String m_password;
301 bool m_passwordHasBeenSet = false;
302
303 int m_port;
304 bool m_portHasBeenSet = false;
305
306 Aws::String m_serverName;
307 bool m_serverNameHasBeenSet = false;
308
309 Aws::String m_serverTimezone;
310 bool m_serverTimezoneHasBeenSet = false;
311
312 Aws::String m_username;
313 bool m_usernameHasBeenSet = false;
314
315 Aws::String m_secretsManagerAccessRoleArn;
316 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
317
318 Aws::String m_secretsManagerSecretId;
319 bool m_secretsManagerSecretIdHasBeenSet = false;
320
321 int m_executeTimeout;
322 bool m_executeTimeoutHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace DatabaseMigrationService
327} // namespace Aws
MySQLSettings & WithDatabaseName(const Aws::String &value)
MySQLSettings & WithUsername(const Aws::String &value)
MySQLSettings & WithServerTimezone(const char *value)
MySQLSettings & WithPassword(const char *value)
MySQLSettings & WithTargetDbType(const TargetDbType &value)
MySQLSettings & WithSecretsManagerSecretId(Aws::String &&value)
MySQLSettings & WithServerTimezone(Aws::String &&value)
MySQLSettings & WithDatabaseName(Aws::String &&value)
MySQLSettings & WithServerName(const Aws::String &value)
MySQLSettings & WithCleanSourceMetadataOnMismatch(bool value)
MySQLSettings & WithServerTimezone(const Aws::String &value)
MySQLSettings & WithPassword(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
MySQLSettings & WithDatabaseName(const char *value)
MySQLSettings & WithServerName(Aws::String &&value)
MySQLSettings & WithSecretsManagerAccessRoleArn(Aws::String &&value)
MySQLSettings & WithUsername(Aws::String &&value)
void SetSecretsManagerSecretId(const Aws::String &value)
MySQLSettings & WithAfterConnectScript(Aws::String &&value)
MySQLSettings & WithAfterConnectScript(const char *value)
MySQLSettings & WithSecretsManagerSecretId(const Aws::String &value)
void SetTargetDbType(const TargetDbType &value)
MySQLSettings & WithTargetDbType(TargetDbType &&value)
void SetSecretsManagerAccessRoleArn(const Aws::String &value)
MySQLSettings & WithSecretsManagerSecretId(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MySQLSettings & WithPassword(const Aws::String &value)
MySQLSettings & WithSecretsManagerAccessRoleArn(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings()
const Aws::String & GetSecretsManagerAccessRoleArn() const
MySQLSettings & WithUsername(const char *value)
void SetAfterConnectScript(const Aws::String &value)
MySQLSettings & WithServerName(const char *value)
MySQLSettings & WithAfterConnectScript(const Aws::String &value)
MySQLSettings & WithSecretsManagerAccessRoleArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue