AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
IBMDb2Settings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DatabaseMigrationService {
20namespace Model {
21
29 public:
30 AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings() = default;
31 AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
40 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
41 template <typename DatabaseNameT = Aws::String>
42 void SetDatabaseName(DatabaseNameT&& value) {
43 m_databaseNameHasBeenSet = true;
44 m_databaseName = std::forward<DatabaseNameT>(value);
45 }
46 template <typename DatabaseNameT = Aws::String>
47 IBMDb2Settings& WithDatabaseName(DatabaseNameT&& value) {
48 SetDatabaseName(std::forward<DatabaseNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPassword() const { return m_password; }
58 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
59 template <typename PasswordT = Aws::String>
60 void SetPassword(PasswordT&& value) {
61 m_passwordHasBeenSet = true;
62 m_password = std::forward<PasswordT>(value);
63 }
64 template <typename PasswordT = Aws::String>
65 IBMDb2Settings& WithPassword(PasswordT&& value) {
66 SetPassword(std::forward<PasswordT>(value));
67 return *this;
68 }
70
72
75 inline int GetPort() const { return m_port; }
76 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
77 inline void SetPort(int value) {
78 m_portHasBeenSet = true;
79 m_port = value;
80 }
81 inline IBMDb2Settings& WithPort(int value) {
82 SetPort(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetServerName() const { return m_serverName; }
92 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
93 template <typename ServerNameT = Aws::String>
94 void SetServerName(ServerNameT&& value) {
95 m_serverNameHasBeenSet = true;
96 m_serverName = std::forward<ServerNameT>(value);
97 }
98 template <typename ServerNameT = Aws::String>
99 IBMDb2Settings& WithServerName(ServerNameT&& value) {
100 SetServerName(std::forward<ServerNameT>(value));
101 return *this;
102 }
104
106
110 inline bool GetSetDataCaptureChanges() const { return m_setDataCaptureChanges; }
111 inline bool SetDataCaptureChangesHasBeenSet() const { return m_setDataCaptureChangesHasBeenSet; }
112 inline void SetSetDataCaptureChanges(bool value) {
113 m_setDataCaptureChangesHasBeenSet = true;
114 m_setDataCaptureChanges = value;
115 }
118 return *this;
119 }
121
123
127 inline const Aws::String& GetCurrentLsn() const { return m_currentLsn; }
128 inline bool CurrentLsnHasBeenSet() const { return m_currentLsnHasBeenSet; }
129 template <typename CurrentLsnT = Aws::String>
130 void SetCurrentLsn(CurrentLsnT&& value) {
131 m_currentLsnHasBeenSet = true;
132 m_currentLsn = std::forward<CurrentLsnT>(value);
133 }
134 template <typename CurrentLsnT = Aws::String>
135 IBMDb2Settings& WithCurrentLsn(CurrentLsnT&& value) {
136 SetCurrentLsn(std::forward<CurrentLsnT>(value));
137 return *this;
138 }
140
142
146 inline int GetMaxKBytesPerRead() const { return m_maxKBytesPerRead; }
147 inline bool MaxKBytesPerReadHasBeenSet() const { return m_maxKBytesPerReadHasBeenSet; }
148 inline void SetMaxKBytesPerRead(int value) {
149 m_maxKBytesPerReadHasBeenSet = true;
150 m_maxKBytesPerRead = value;
151 }
153 SetMaxKBytesPerRead(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetUsername() const { return m_username; }
163 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
164 template <typename UsernameT = Aws::String>
165 void SetUsername(UsernameT&& value) {
166 m_usernameHasBeenSet = true;
167 m_username = std::forward<UsernameT>(value);
168 }
169 template <typename UsernameT = Aws::String>
170 IBMDb2Settings& WithUsername(UsernameT&& value) {
171 SetUsername(std::forward<UsernameT>(value));
172 return *this;
173 }
175
177
195 inline const Aws::String& GetSecretsManagerAccessRoleArn() const { return m_secretsManagerAccessRoleArn; }
196 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
197 template <typename SecretsManagerAccessRoleArnT = Aws::String>
198 void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
199 m_secretsManagerAccessRoleArnHasBeenSet = true;
200 m_secretsManagerAccessRoleArn = std::forward<SecretsManagerAccessRoleArnT>(value);
201 }
202 template <typename SecretsManagerAccessRoleArnT = Aws::String>
203 IBMDb2Settings& WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT&& value) {
204 SetSecretsManagerAccessRoleArn(std::forward<SecretsManagerAccessRoleArnT>(value));
205 return *this;
206 }
208
210
215 inline const Aws::String& GetSecretsManagerSecretId() const { return m_secretsManagerSecretId; }
216 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
217 template <typename SecretsManagerSecretIdT = Aws::String>
218 void SetSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
219 m_secretsManagerSecretIdHasBeenSet = true;
220 m_secretsManagerSecretId = std::forward<SecretsManagerSecretIdT>(value);
221 }
222 template <typename SecretsManagerSecretIdT = Aws::String>
223 IBMDb2Settings& WithSecretsManagerSecretId(SecretsManagerSecretIdT&& value) {
224 SetSecretsManagerSecretId(std::forward<SecretsManagerSecretIdT>(value));
225 return *this;
226 }
228
230
234 inline int GetLoadTimeout() const { return m_loadTimeout; }
235 inline bool LoadTimeoutHasBeenSet() const { return m_loadTimeoutHasBeenSet; }
236 inline void SetLoadTimeout(int value) {
237 m_loadTimeoutHasBeenSet = true;
238 m_loadTimeout = value;
239 }
240 inline IBMDb2Settings& WithLoadTimeout(int value) {
241 SetLoadTimeout(value);
242 return *this;
243 }
245
247
252 inline int GetWriteBufferSize() const { return m_writeBufferSize; }
253 inline bool WriteBufferSizeHasBeenSet() const { return m_writeBufferSizeHasBeenSet; }
254 inline void SetWriteBufferSize(int value) {
255 m_writeBufferSizeHasBeenSet = true;
256 m_writeBufferSize = value;
257 }
259 SetWriteBufferSize(value);
260 return *this;
261 }
263
265
269 inline int GetMaxFileSize() const { return m_maxFileSize; }
270 inline bool MaxFileSizeHasBeenSet() const { return m_maxFileSizeHasBeenSet; }
271 inline void SetMaxFileSize(int value) {
272 m_maxFileSizeHasBeenSet = true;
273 m_maxFileSize = value;
274 }
275 inline IBMDb2Settings& WithMaxFileSize(int value) {
276 SetMaxFileSize(value);
277 return *this;
278 }
280
282
287 inline bool GetKeepCsvFiles() const { return m_keepCsvFiles; }
288 inline bool KeepCsvFilesHasBeenSet() const { return m_keepCsvFilesHasBeenSet; }
289 inline void SetKeepCsvFiles(bool value) {
290 m_keepCsvFilesHasBeenSet = true;
291 m_keepCsvFiles = value;
292 }
293 inline IBMDb2Settings& WithKeepCsvFiles(bool value) {
294 SetKeepCsvFiles(value);
295 return *this;
296 }
298 private:
299 Aws::String m_databaseName;
300
301 Aws::String m_password;
302
303 int m_port{0};
304
305 Aws::String m_serverName;
306
307 bool m_setDataCaptureChanges{false};
308
309 Aws::String m_currentLsn;
310
311 int m_maxKBytesPerRead{0};
312
313 Aws::String m_username;
314
315 Aws::String m_secretsManagerAccessRoleArn;
316
317 Aws::String m_secretsManagerSecretId;
318
319 int m_loadTimeout{0};
320
321 int m_writeBufferSize{0};
322
323 int m_maxFileSize{0};
324
325 bool m_keepCsvFiles{false};
326 bool m_databaseNameHasBeenSet = false;
327 bool m_passwordHasBeenSet = false;
328 bool m_portHasBeenSet = false;
329 bool m_serverNameHasBeenSet = false;
330 bool m_setDataCaptureChangesHasBeenSet = false;
331 bool m_currentLsnHasBeenSet = false;
332 bool m_maxKBytesPerReadHasBeenSet = false;
333 bool m_usernameHasBeenSet = false;
334 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
335 bool m_secretsManagerSecretIdHasBeenSet = false;
336 bool m_loadTimeoutHasBeenSet = false;
337 bool m_writeBufferSizeHasBeenSet = false;
338 bool m_maxFileSizeHasBeenSet = false;
339 bool m_keepCsvFilesHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace DatabaseMigrationService
344} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings(Aws::Utils::Json::JsonView jsonValue)
IBMDb2Settings & WithCurrentLsn(CurrentLsnT &&value)
IBMDb2Settings & WithDatabaseName(DatabaseNameT &&value)
IBMDb2Settings & WithSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings()=default
IBMDb2Settings & WithUsername(UsernameT &&value)
void SetSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
void SetSecretsManagerSecretId(SecretsManagerSecretIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API IBMDb2Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
IBMDb2Settings & WithSecretsManagerAccessRoleArn(SecretsManagerAccessRoleArnT &&value)
IBMDb2Settings & WithPassword(PasswordT &&value)
IBMDb2Settings & WithServerName(ServerNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue