AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GcpMySQLSettings.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 GcpMySQLSettings();
37 AWS_DATABASEMIGRATIONSERVICE_API GcpMySQLSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API GcpMySQLSettings& 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 GcpMySQLSettings& WithAfterConnectScript(const Aws::String& value) { SetAfterConnectScript(value); return *this;}
55 inline GcpMySQLSettings& WithAfterConnectScript(Aws::String&& value) { SetAfterConnectScript(std::move(value)); return *this;}
56 inline GcpMySQLSettings& 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 GcpMySQLSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
88 inline GcpMySQLSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
89 inline GcpMySQLSettings& 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 GcpMySQLSettings& WithEventsPollInterval(int value) { SetEventsPollInterval(value); return *this;}
104
106
111 inline const TargetDbType& GetTargetDbType() const{ return m_targetDbType; }
112 inline bool TargetDbTypeHasBeenSet() const { return m_targetDbTypeHasBeenSet; }
113 inline void SetTargetDbType(const TargetDbType& value) { m_targetDbTypeHasBeenSet = true; m_targetDbType = value; }
114 inline void SetTargetDbType(TargetDbType&& value) { m_targetDbTypeHasBeenSet = true; m_targetDbType = std::move(value); }
115 inline GcpMySQLSettings& WithTargetDbType(const TargetDbType& value) { SetTargetDbType(value); return *this;}
116 inline GcpMySQLSettings& WithTargetDbType(TargetDbType&& value) { SetTargetDbType(std::move(value)); return *this;}
118
120
124 inline int GetMaxFileSize() const{ return m_maxFileSize; }
125 inline bool MaxFileSizeHasBeenSet() const { return m_maxFileSizeHasBeenSet; }
126 inline void SetMaxFileSize(int value) { m_maxFileSizeHasBeenSet = true; m_maxFileSize = value; }
127 inline GcpMySQLSettings& WithMaxFileSize(int value) { SetMaxFileSize(value); return *this;}
129
131
139 inline int GetParallelLoadThreads() const{ return m_parallelLoadThreads; }
140 inline bool ParallelLoadThreadsHasBeenSet() const { return m_parallelLoadThreadsHasBeenSet; }
141 inline void SetParallelLoadThreads(int value) { m_parallelLoadThreadsHasBeenSet = true; m_parallelLoadThreads = value; }
142 inline GcpMySQLSettings& WithParallelLoadThreads(int value) { SetParallelLoadThreads(value); return *this;}
144
146
149 inline const Aws::String& GetPassword() const{ return m_password; }
150 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
151 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
152 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
153 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
154 inline GcpMySQLSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
155 inline GcpMySQLSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
156 inline GcpMySQLSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
158
160
163 inline int GetPort() const{ return m_port; }
164 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
165 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
166 inline GcpMySQLSettings& WithPort(int value) { SetPort(value); return *this;}
168
170
173 inline const Aws::String& GetServerName() const{ return m_serverName; }
174 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
175 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
176 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
177 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
178 inline GcpMySQLSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
179 inline GcpMySQLSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
180 inline GcpMySQLSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
182
184
189 inline const Aws::String& GetServerTimezone() const{ return m_serverTimezone; }
190 inline bool ServerTimezoneHasBeenSet() const { return m_serverTimezoneHasBeenSet; }
191 inline void SetServerTimezone(const Aws::String& value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone = value; }
192 inline void SetServerTimezone(Aws::String&& value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone = std::move(value); }
193 inline void SetServerTimezone(const char* value) { m_serverTimezoneHasBeenSet = true; m_serverTimezone.assign(value); }
194 inline GcpMySQLSettings& WithServerTimezone(const Aws::String& value) { SetServerTimezone(value); return *this;}
195 inline GcpMySQLSettings& WithServerTimezone(Aws::String&& value) { SetServerTimezone(std::move(value)); return *this;}
196 inline GcpMySQLSettings& WithServerTimezone(const char* value) { SetServerTimezone(value); return *this;}
198
200
203 inline const Aws::String& GetUsername() const{ return m_username; }
204 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
205 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
206 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
207 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
208 inline GcpMySQLSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
209 inline GcpMySQLSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
210 inline GcpMySQLSettings& WithUsername(const char* value) { SetUsername(value); return *this;}
212
214
232 inline const Aws::String& GetSecretsManagerAccessRoleArn() const{ return m_secretsManagerAccessRoleArn; }
233 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
234 inline void SetSecretsManagerAccessRoleArn(const Aws::String& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = value; }
235 inline void SetSecretsManagerAccessRoleArn(Aws::String&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::move(value); }
236 inline void SetSecretsManagerAccessRoleArn(const char* value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn.assign(value); }
239 inline GcpMySQLSettings& WithSecretsManagerAccessRoleArn(const char* value) { SetSecretsManagerAccessRoleArn(value); return *this;}
241
243
248 inline const Aws::String& GetSecretsManagerSecretId() const{ return m_secretsManagerSecretId; }
249 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
250 inline void SetSecretsManagerSecretId(const Aws::String& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = value; }
251 inline void SetSecretsManagerSecretId(Aws::String&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::move(value); }
252 inline void SetSecretsManagerSecretId(const char* value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId.assign(value); }
254 inline GcpMySQLSettings& WithSecretsManagerSecretId(Aws::String&& value) { SetSecretsManagerSecretId(std::move(value)); return *this;}
255 inline GcpMySQLSettings& WithSecretsManagerSecretId(const char* value) { SetSecretsManagerSecretId(value); return *this;}
257 private:
258
259 Aws::String m_afterConnectScript;
260 bool m_afterConnectScriptHasBeenSet = false;
261
262 bool m_cleanSourceMetadataOnMismatch;
263 bool m_cleanSourceMetadataOnMismatchHasBeenSet = false;
264
265 Aws::String m_databaseName;
266 bool m_databaseNameHasBeenSet = false;
267
268 int m_eventsPollInterval;
269 bool m_eventsPollIntervalHasBeenSet = false;
270
271 TargetDbType m_targetDbType;
272 bool m_targetDbTypeHasBeenSet = false;
273
274 int m_maxFileSize;
275 bool m_maxFileSizeHasBeenSet = false;
276
277 int m_parallelLoadThreads;
278 bool m_parallelLoadThreadsHasBeenSet = false;
279
280 Aws::String m_password;
281 bool m_passwordHasBeenSet = false;
282
283 int m_port;
284 bool m_portHasBeenSet = false;
285
286 Aws::String m_serverName;
287 bool m_serverNameHasBeenSet = false;
288
289 Aws::String m_serverTimezone;
290 bool m_serverTimezoneHasBeenSet = false;
291
292 Aws::String m_username;
293 bool m_usernameHasBeenSet = false;
294
295 Aws::String m_secretsManagerAccessRoleArn;
296 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
297
298 Aws::String m_secretsManagerSecretId;
299 bool m_secretsManagerSecretIdHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace DatabaseMigrationService
304} // namespace Aws
GcpMySQLSettings & WithPassword(const char *value)
GcpMySQLSettings & WithAfterConnectScript(Aws::String &&value)
GcpMySQLSettings & WithCleanSourceMetadataOnMismatch(bool value)
GcpMySQLSettings & WithServerName(Aws::String &&value)
GcpMySQLSettings & WithSecretsManagerSecretId(const Aws::String &value)
GcpMySQLSettings & WithAfterConnectScript(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API GcpMySQLSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
GcpMySQLSettings & WithDatabaseName(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API GcpMySQLSettings(Aws::Utils::Json::JsonView jsonValue)
GcpMySQLSettings & WithAfterConnectScript(const char *value)
GcpMySQLSettings & WithDatabaseName(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
GcpMySQLSettings & WithUsername(const char *value)
GcpMySQLSettings & WithSecretsManagerSecretId(const char *value)
GcpMySQLSettings & WithUsername(const Aws::String &value)
GcpMySQLSettings & WithSecretsManagerAccessRoleArn(const char *value)
GcpMySQLSettings & WithDatabaseName(const Aws::String &value)
GcpMySQLSettings & WithServerName(const Aws::String &value)
void SetSecretsManagerAccessRoleArn(const Aws::String &value)
GcpMySQLSettings & WithServerTimezone(Aws::String &&value)
GcpMySQLSettings & WithSecretsManagerAccessRoleArn(Aws::String &&value)
GcpMySQLSettings & WithTargetDbType(const TargetDbType &value)
GcpMySQLSettings & WithServerTimezone(const Aws::String &value)
GcpMySQLSettings & WithSecretsManagerSecretId(Aws::String &&value)
GcpMySQLSettings & WithPassword(const Aws::String &value)
GcpMySQLSettings & WithUsername(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API GcpMySQLSettings()
GcpMySQLSettings & WithTargetDbType(TargetDbType &&value)
GcpMySQLSettings & WithServerName(const char *value)
GcpMySQLSettings & WithPassword(Aws::String &&value)
GcpMySQLSettings & WithServerTimezone(const char *value)
GcpMySQLSettings & WithSecretsManagerAccessRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue