AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <aws/dms/model/MySQLAuthenticationMethod.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings() = default;
38 AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::String& GetAfterConnectScript() const { return m_afterConnectScript; }
51 inline bool AfterConnectScriptHasBeenSet() const { return m_afterConnectScriptHasBeenSet; }
52 template<typename AfterConnectScriptT = Aws::String>
53 void SetAfterConnectScript(AfterConnectScriptT&& value) { m_afterConnectScriptHasBeenSet = true; m_afterConnectScript = std::forward<AfterConnectScriptT>(value); }
54 template<typename AfterConnectScriptT = Aws::String>
55 MySQLSettings& WithAfterConnectScript(AfterConnectScriptT&& value) { SetAfterConnectScript(std::forward<AfterConnectScriptT>(value)); return *this;}
57
59
65 inline bool GetCleanSourceMetadataOnMismatch() const { return m_cleanSourceMetadataOnMismatch; }
66 inline bool CleanSourceMetadataOnMismatchHasBeenSet() const { return m_cleanSourceMetadataOnMismatchHasBeenSet; }
67 inline void SetCleanSourceMetadataOnMismatch(bool value) { m_cleanSourceMetadataOnMismatchHasBeenSet = true; m_cleanSourceMetadataOnMismatch = value; }
70
72
81 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
82 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
83 template<typename DatabaseNameT = Aws::String>
84 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
85 template<typename DatabaseNameT = Aws::String>
86 MySQLSettings& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
88
90
96 inline int GetEventsPollInterval() const { return m_eventsPollInterval; }
97 inline bool EventsPollIntervalHasBeenSet() const { return m_eventsPollIntervalHasBeenSet; }
98 inline void SetEventsPollInterval(int value) { m_eventsPollIntervalHasBeenSet = true; m_eventsPollInterval = value; }
99 inline MySQLSettings& WithEventsPollInterval(int value) { SetEventsPollInterval(value); return *this;}
101
103
110 inline TargetDbType GetTargetDbType() const { return m_targetDbType; }
111 inline bool TargetDbTypeHasBeenSet() const { return m_targetDbTypeHasBeenSet; }
112 inline void SetTargetDbType(TargetDbType value) { m_targetDbTypeHasBeenSet = true; m_targetDbType = value; }
113 inline MySQLSettings& WithTargetDbType(TargetDbType value) { SetTargetDbType(value); return *this;}
115
117
121 inline int GetMaxFileSize() const { return m_maxFileSize; }
122 inline bool MaxFileSizeHasBeenSet() const { return m_maxFileSizeHasBeenSet; }
123 inline void SetMaxFileSize(int value) { m_maxFileSizeHasBeenSet = true; m_maxFileSize = value; }
124 inline MySQLSettings& WithMaxFileSize(int value) { SetMaxFileSize(value); return *this;}
126
128
136 inline int GetParallelLoadThreads() const { return m_parallelLoadThreads; }
137 inline bool ParallelLoadThreadsHasBeenSet() const { return m_parallelLoadThreadsHasBeenSet; }
138 inline void SetParallelLoadThreads(int value) { m_parallelLoadThreadsHasBeenSet = true; m_parallelLoadThreads = value; }
139 inline MySQLSettings& WithParallelLoadThreads(int value) { SetParallelLoadThreads(value); return *this;}
141
143
146 inline const Aws::String& GetPassword() const { return m_password; }
147 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
148 template<typename PasswordT = Aws::String>
149 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
150 template<typename PasswordT = Aws::String>
151 MySQLSettings& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
153
155
158 inline int GetPort() const { return m_port; }
159 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
160 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
161 inline MySQLSettings& WithPort(int value) { SetPort(value); return *this;}
163
165
175 inline const Aws::String& GetServerName() const { return m_serverName; }
176 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
177 template<typename ServerNameT = Aws::String>
178 void SetServerName(ServerNameT&& value) { m_serverNameHasBeenSet = true; m_serverName = std::forward<ServerNameT>(value); }
179 template<typename ServerNameT = Aws::String>
180 MySQLSettings& WithServerName(ServerNameT&& value) { SetServerName(std::forward<ServerNameT>(value)); return *this;}
182
184
189 inline const Aws::String& GetServerTimezone() const { return m_serverTimezone; }
190 inline bool ServerTimezoneHasBeenSet() const { return m_serverTimezoneHasBeenSet; }
191 template<typename ServerTimezoneT = Aws::String>
192 void SetServerTimezone(ServerTimezoneT&& value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone = std::forward<ServerTimezoneT>(value); }
193 template<typename ServerTimezoneT = Aws::String>
194 MySQLSettings& WithServerTimezone(ServerTimezoneT&& value) { SetServerTimezone(std::forward<ServerTimezoneT>(value)); return *this;}
196
198
201 inline const Aws::String& GetUsername() const { return m_username; }
202 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
203 template<typename UsernameT = Aws::String>
204 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
205 template<typename UsernameT = Aws::String>
206 MySQLSettings& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
208
210
228 inline const Aws::String& GetSecretsManagerAccessRoleArn() const { return m_secretsManagerAccessRoleArn; }
229 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
230 template<typename SecretsManagerAccessRoleArnT = Aws::String>
231 void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::forward<SecretsManagerAccessRoleArnT>(value); }
232 template<typename SecretsManagerAccessRoleArnT = Aws::String>
233 MySQLSettings& WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) { SetSecretsManagerAccessRoleArn(std::forward<SecretsManagerAccessRoleArnT>(value)); return *this;}
235
237
242 inline const Aws::String& GetSecretsManagerSecretId() const { return m_secretsManagerSecretId; }
243 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
244 template<typename SecretsManagerSecretIdT = Aws::String>
245 void SetSecretsManagerSecretId(SecretsManagerSecretIdT&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::forward<SecretsManagerSecretIdT>(value); }
246 template<typename SecretsManagerSecretIdT = Aws::String>
247 MySQLSettings& WithSecretsManagerSecretId(SecretsManagerSecretIdT&& value) { SetSecretsManagerSecretId(std::forward<SecretsManagerSecretIdT>(value)); return *this;}
249
251
255 inline int GetExecuteTimeout() const { return m_executeTimeout; }
256 inline bool ExecuteTimeoutHasBeenSet() const { return m_executeTimeoutHasBeenSet; }
257 inline void SetExecuteTimeout(int value) { m_executeTimeoutHasBeenSet = true; m_executeTimeout = value; }
258 inline MySQLSettings& WithExecuteTimeout(int value) { SetExecuteTimeout(value); return *this;}
260
262
267 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
268 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
269 template<typename ServiceAccessRoleArnT = Aws::String>
270 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { m_serviceAccessRoleArnHasBeenSet = true; m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value); }
271 template<typename ServiceAccessRoleArnT = Aws::String>
272 MySQLSettings& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) { SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value)); return *this;}
274
276
280 inline MySQLAuthenticationMethod GetAuthenticationMethod() const { return m_authenticationMethod; }
281 inline bool AuthenticationMethodHasBeenSet() const { return m_authenticationMethodHasBeenSet; }
282 inline void SetAuthenticationMethod(MySQLAuthenticationMethod value) { m_authenticationMethodHasBeenSet = true; m_authenticationMethod = value; }
285 private:
286
287 Aws::String m_afterConnectScript;
288 bool m_afterConnectScriptHasBeenSet = false;
289
290 bool m_cleanSourceMetadataOnMismatch{false};
291 bool m_cleanSourceMetadataOnMismatchHasBeenSet = false;
292
293 Aws::String m_databaseName;
294 bool m_databaseNameHasBeenSet = false;
295
296 int m_eventsPollInterval{0};
297 bool m_eventsPollIntervalHasBeenSet = false;
298
299 TargetDbType m_targetDbType{TargetDbType::NOT_SET};
300 bool m_targetDbTypeHasBeenSet = false;
301
302 int m_maxFileSize{0};
303 bool m_maxFileSizeHasBeenSet = false;
304
305 int m_parallelLoadThreads{0};
306 bool m_parallelLoadThreadsHasBeenSet = false;
307
308 Aws::String m_password;
309 bool m_passwordHasBeenSet = false;
310
311 int m_port{0};
312 bool m_portHasBeenSet = false;
313
314 Aws::String m_serverName;
315 bool m_serverNameHasBeenSet = false;
316
317 Aws::String m_serverTimezone;
318 bool m_serverTimezoneHasBeenSet = false;
319
320 Aws::String m_username;
321 bool m_usernameHasBeenSet = false;
322
323 Aws::String m_secretsManagerAccessRoleArn;
324 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
325
326 Aws::String m_secretsManagerSecretId;
327 bool m_secretsManagerSecretIdHasBeenSet = false;
328
329 int m_executeTimeout{0};
330 bool m_executeTimeoutHasBeenSet = false;
331
332 Aws::String m_serviceAccessRoleArn;
333 bool m_serviceAccessRoleArnHasBeenSet = false;
334
336 bool m_authenticationMethodHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace DatabaseMigrationService
341} // namespace Aws
void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
MySQLSettings & WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
MySQLSettings & WithDatabaseName(DatabaseNameT &&value)
void SetAuthenticationMethod(MySQLAuthenticationMethod value)
MySQLSettings & WithCleanSourceMetadataOnMismatch(bool value)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings(Aws::Utils::Json::JsonView jsonValue)
void SetServiceAccessRoleArn(ServiceAccessRoleArnT &&value)
MySQLAuthenticationMethod GetAuthenticationMethod() const
MySQLSettings & WithServiceAccessRoleArn(ServiceAccessRoleArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAfterConnectScript(AfterConnectScriptT &&value)
MySQLSettings & WithServerName(ServerNameT &&value)
MySQLSettings & WithPassword(PasswordT &&value)
MySQLSettings & WithSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MySQLSettings & WithAuthenticationMethod(MySQLAuthenticationMethod value)
const Aws::String & GetSecretsManagerAccessRoleArn() const
void SetSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
MySQLSettings & WithServerTimezone(ServerTimezoneT &&value)
MySQLSettings & WithTargetDbType(TargetDbType value)
AWS_DATABASEMIGRATIONSERVICE_API MySQLSettings()=default
MySQLSettings & WithAfterConnectScript(AfterConnectScriptT &&value)
MySQLSettings & WithUsername(UsernameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue