AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MicrosoftSQLServerSettings.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/SafeguardPolicy.h>
10#include <aws/dms/model/TlogAccessMode.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 MicrosoftSQLServerSettings();
38 AWS_DATABASEMIGRATIONSERVICE_API MicrosoftSQLServerSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API MicrosoftSQLServerSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetPort() const{ return m_port; }
48 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
49 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
50 inline MicrosoftSQLServerSettings& WithPort(int value) { SetPort(value); return *this;}
52
54
58 inline int GetBcpPacketSize() const{ return m_bcpPacketSize; }
59 inline bool BcpPacketSizeHasBeenSet() const { return m_bcpPacketSizeHasBeenSet; }
60 inline void SetBcpPacketSize(int value) { m_bcpPacketSizeHasBeenSet = true; m_bcpPacketSize = value; }
61 inline MicrosoftSQLServerSettings& WithBcpPacketSize(int value) { SetBcpPacketSize(value); return *this;}
63
65
68 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
69 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
70 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
71 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
72 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
73 inline MicrosoftSQLServerSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
74 inline MicrosoftSQLServerSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
75 inline MicrosoftSQLServerSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
77
79
84 inline const Aws::String& GetControlTablesFileGroup() const{ return m_controlTablesFileGroup; }
85 inline bool ControlTablesFileGroupHasBeenSet() const { return m_controlTablesFileGroupHasBeenSet; }
86 inline void SetControlTablesFileGroup(const Aws::String& value) { m_controlTablesFileGroupHasBeenSet = true; m_controlTablesFileGroup = value; }
87 inline void SetControlTablesFileGroup(Aws::String&& value) { m_controlTablesFileGroupHasBeenSet = true; m_controlTablesFileGroup = std::move(value); }
88 inline void SetControlTablesFileGroup(const char* value) { m_controlTablesFileGroupHasBeenSet = true; m_controlTablesFileGroup.assign(value); }
91 inline MicrosoftSQLServerSettings& WithControlTablesFileGroup(const char* value) { SetControlTablesFileGroup(value); return *this;}
93
95
98 inline const Aws::String& GetPassword() const{ return m_password; }
99 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
100 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
101 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
102 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
103 inline MicrosoftSQLServerSettings& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
104 inline MicrosoftSQLServerSettings& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
105 inline MicrosoftSQLServerSettings& WithPassword(const char* value) { SetPassword(value); return *this;}
107
109
115 inline bool GetQuerySingleAlwaysOnNode() const{ return m_querySingleAlwaysOnNode; }
116 inline bool QuerySingleAlwaysOnNodeHasBeenSet() const { return m_querySingleAlwaysOnNodeHasBeenSet; }
117 inline void SetQuerySingleAlwaysOnNode(bool value) { m_querySingleAlwaysOnNodeHasBeenSet = true; m_querySingleAlwaysOnNode = value; }
120
122
130 inline bool GetReadBackupOnly() const{ return m_readBackupOnly; }
131 inline bool ReadBackupOnlyHasBeenSet() const { return m_readBackupOnlyHasBeenSet; }
132 inline void SetReadBackupOnly(bool value) { m_readBackupOnlyHasBeenSet = true; m_readBackupOnly = value; }
133 inline MicrosoftSQLServerSettings& WithReadBackupOnly(bool value) { SetReadBackupOnly(value); return *this;}
135
137
153 inline const SafeguardPolicy& GetSafeguardPolicy() const{ return m_safeguardPolicy; }
154 inline bool SafeguardPolicyHasBeenSet() const { return m_safeguardPolicyHasBeenSet; }
155 inline void SetSafeguardPolicy(const SafeguardPolicy& value) { m_safeguardPolicyHasBeenSet = true; m_safeguardPolicy = value; }
156 inline void SetSafeguardPolicy(SafeguardPolicy&& value) { m_safeguardPolicyHasBeenSet = true; m_safeguardPolicy = std::move(value); }
158 inline MicrosoftSQLServerSettings& WithSafeguardPolicy(SafeguardPolicy&& value) { SetSafeguardPolicy(std::move(value)); return *this;}
160
162
170 inline const Aws::String& GetServerName() const{ return m_serverName; }
171 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
172 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
173 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
174 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
175 inline MicrosoftSQLServerSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
176 inline MicrosoftSQLServerSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
177 inline MicrosoftSQLServerSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
179
181
184 inline const Aws::String& GetUsername() const{ return m_username; }
185 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
186 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
187 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
188 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
189 inline MicrosoftSQLServerSettings& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
190 inline MicrosoftSQLServerSettings& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
191 inline MicrosoftSQLServerSettings& WithUsername(const char* value) { SetUsername(value); return *this;}
193
195
200 inline bool GetUseBcpFullLoad() const{ return m_useBcpFullLoad; }
201 inline bool UseBcpFullLoadHasBeenSet() const { return m_useBcpFullLoadHasBeenSet; }
202 inline void SetUseBcpFullLoad(bool value) { m_useBcpFullLoadHasBeenSet = true; m_useBcpFullLoad = value; }
203 inline MicrosoftSQLServerSettings& WithUseBcpFullLoad(bool value) { SetUseBcpFullLoad(value); return *this;}
205
207
211 inline bool GetUseThirdPartyBackupDevice() const{ return m_useThirdPartyBackupDevice; }
212 inline bool UseThirdPartyBackupDeviceHasBeenSet() const { return m_useThirdPartyBackupDeviceHasBeenSet; }
213 inline void SetUseThirdPartyBackupDevice(bool value) { m_useThirdPartyBackupDeviceHasBeenSet = true; m_useThirdPartyBackupDevice = value; }
216
218
236 inline const Aws::String& GetSecretsManagerAccessRoleArn() const{ return m_secretsManagerAccessRoleArn; }
237 inline bool SecretsManagerAccessRoleArnHasBeenSet() const { return m_secretsManagerAccessRoleArnHasBeenSet; }
238 inline void SetSecretsManagerAccessRoleArn(const Aws::String& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = value; }
239 inline void SetSecretsManagerAccessRoleArn(Aws::String&& value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn = std::move(value); }
240 inline void SetSecretsManagerAccessRoleArn(const char* value) { m_secretsManagerAccessRoleArnHasBeenSet = true; m_secretsManagerAccessRoleArn.assign(value); }
245
247
252 inline const Aws::String& GetSecretsManagerSecretId() const{ return m_secretsManagerSecretId; }
253 inline bool SecretsManagerSecretIdHasBeenSet() const { return m_secretsManagerSecretIdHasBeenSet; }
254 inline void SetSecretsManagerSecretId(const Aws::String& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = value; }
255 inline void SetSecretsManagerSecretId(Aws::String&& value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId = std::move(value); }
256 inline void SetSecretsManagerSecretId(const char* value) { m_secretsManagerSecretIdHasBeenSet = true; m_secretsManagerSecretId.assign(value); }
259 inline MicrosoftSQLServerSettings& WithSecretsManagerSecretId(const char* value) { SetSecretsManagerSecretId(value); return *this;}
261
263
269 inline bool GetTrimSpaceInChar() const{ return m_trimSpaceInChar; }
270 inline bool TrimSpaceInCharHasBeenSet() const { return m_trimSpaceInCharHasBeenSet; }
271 inline void SetTrimSpaceInChar(bool value) { m_trimSpaceInCharHasBeenSet = true; m_trimSpaceInChar = value; }
272 inline MicrosoftSQLServerSettings& WithTrimSpaceInChar(bool value) { SetTrimSpaceInChar(value); return *this;}
274
276
279 inline const TlogAccessMode& GetTlogAccessMode() const{ return m_tlogAccessMode; }
280 inline bool TlogAccessModeHasBeenSet() const { return m_tlogAccessModeHasBeenSet; }
281 inline void SetTlogAccessMode(const TlogAccessMode& value) { m_tlogAccessModeHasBeenSet = true; m_tlogAccessMode = value; }
282 inline void SetTlogAccessMode(TlogAccessMode&& value) { m_tlogAccessModeHasBeenSet = true; m_tlogAccessMode = std::move(value); }
284 inline MicrosoftSQLServerSettings& WithTlogAccessMode(TlogAccessMode&& value) { SetTlogAccessMode(std::move(value)); return *this;}
286
288
291 inline bool GetForceLobLookup() const{ return m_forceLobLookup; }
292 inline bool ForceLobLookupHasBeenSet() const { return m_forceLobLookupHasBeenSet; }
293 inline void SetForceLobLookup(bool value) { m_forceLobLookupHasBeenSet = true; m_forceLobLookup = value; }
294 inline MicrosoftSQLServerSettings& WithForceLobLookup(bool value) { SetForceLobLookup(value); return *this;}
296 private:
297
298 int m_port;
299 bool m_portHasBeenSet = false;
300
301 int m_bcpPacketSize;
302 bool m_bcpPacketSizeHasBeenSet = false;
303
304 Aws::String m_databaseName;
305 bool m_databaseNameHasBeenSet = false;
306
307 Aws::String m_controlTablesFileGroup;
308 bool m_controlTablesFileGroupHasBeenSet = false;
309
310 Aws::String m_password;
311 bool m_passwordHasBeenSet = false;
312
313 bool m_querySingleAlwaysOnNode;
314 bool m_querySingleAlwaysOnNodeHasBeenSet = false;
315
316 bool m_readBackupOnly;
317 bool m_readBackupOnlyHasBeenSet = false;
318
319 SafeguardPolicy m_safeguardPolicy;
320 bool m_safeguardPolicyHasBeenSet = false;
321
322 Aws::String m_serverName;
323 bool m_serverNameHasBeenSet = false;
324
325 Aws::String m_username;
326 bool m_usernameHasBeenSet = false;
327
328 bool m_useBcpFullLoad;
329 bool m_useBcpFullLoadHasBeenSet = false;
330
331 bool m_useThirdPartyBackupDevice;
332 bool m_useThirdPartyBackupDeviceHasBeenSet = false;
333
334 Aws::String m_secretsManagerAccessRoleArn;
335 bool m_secretsManagerAccessRoleArnHasBeenSet = false;
336
337 Aws::String m_secretsManagerSecretId;
338 bool m_secretsManagerSecretIdHasBeenSet = false;
339
340 bool m_trimSpaceInChar;
341 bool m_trimSpaceInCharHasBeenSet = false;
342
343 TlogAccessMode m_tlogAccessMode;
344 bool m_tlogAccessModeHasBeenSet = false;
345
346 bool m_forceLobLookup;
347 bool m_forceLobLookupHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace DatabaseMigrationService
352} // namespace Aws
MicrosoftSQLServerSettings & WithDatabaseName(Aws::String &&value)
MicrosoftSQLServerSettings & WithSafeguardPolicy(SafeguardPolicy &&value)
AWS_DATABASEMIGRATIONSERVICE_API MicrosoftSQLServerSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API MicrosoftSQLServerSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
MicrosoftSQLServerSettings & WithServerName(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
MicrosoftSQLServerSettings & WithDatabaseName(const Aws::String &value)
MicrosoftSQLServerSettings & WithTlogAccessMode(TlogAccessMode &&value)
MicrosoftSQLServerSettings & WithSecretsManagerAccessRoleArn(const char *value)
MicrosoftSQLServerSettings & WithSecretsManagerSecretId(const Aws::String &value)
MicrosoftSQLServerSettings & WithSecretsManagerAccessRoleArn(const Aws::String &value)
MicrosoftSQLServerSettings & WithSecretsManagerSecretId(const char *value)
MicrosoftSQLServerSettings & WithSecretsManagerSecretId(Aws::String &&value)
MicrosoftSQLServerSettings & WithControlTablesFileGroup(Aws::String &&value)
MicrosoftSQLServerSettings & WithSecretsManagerAccessRoleArn(Aws::String &&value)
MicrosoftSQLServerSettings & WithControlTablesFileGroup(const char *value)
MicrosoftSQLServerSettings & WithPassword(const Aws::String &value)
MicrosoftSQLServerSettings & WithUsername(const Aws::String &value)
MicrosoftSQLServerSettings & WithServerName(const Aws::String &value)
MicrosoftSQLServerSettings & WithControlTablesFileGroup(const Aws::String &value)
MicrosoftSQLServerSettings & WithTlogAccessMode(const TlogAccessMode &value)
MicrosoftSQLServerSettings & WithSafeguardPolicy(const SafeguardPolicy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue