AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocDbDataProviderSettings.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/DmsSslModeValue.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 DocDbDataProviderSettings();
37 AWS_DATABASEMIGRATIONSERVICE_API DocDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API DocDbDataProviderSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetServerName() const{ return m_serverName; }
47 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
48 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
49 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
50 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
51 inline DocDbDataProviderSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
52 inline DocDbDataProviderSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
53 inline DocDbDataProviderSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
55
57
60 inline int GetPort() const{ return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
63 inline DocDbDataProviderSettings& WithPort(int value) { SetPort(value); return *this;}
65
67
70 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
71 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
72 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
73 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
74 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
75 inline DocDbDataProviderSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
76 inline DocDbDataProviderSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
77 inline DocDbDataProviderSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
79
81
85 inline const DmsSslModeValue& GetSslMode() const{ return m_sslMode; }
86 inline bool SslModeHasBeenSet() const { return m_sslModeHasBeenSet; }
87 inline void SetSslMode(const DmsSslModeValue& value) { m_sslModeHasBeenSet = true; m_sslMode = value; }
88 inline void SetSslMode(DmsSslModeValue&& value) { m_sslModeHasBeenSet = true; m_sslMode = std::move(value); }
89 inline DocDbDataProviderSettings& WithSslMode(const DmsSslModeValue& value) { SetSslMode(value); return *this;}
90 inline DocDbDataProviderSettings& WithSslMode(DmsSslModeValue&& value) { SetSslMode(std::move(value)); return *this;}
92
94
98 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
99 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
100 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
101 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
102 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
103 inline DocDbDataProviderSettings& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
104 inline DocDbDataProviderSettings& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
105 inline DocDbDataProviderSettings& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
107 private:
108
109 Aws::String m_serverName;
110 bool m_serverNameHasBeenSet = false;
111
112 int m_port;
113 bool m_portHasBeenSet = false;
114
115 Aws::String m_databaseName;
116 bool m_databaseNameHasBeenSet = false;
117
118 DmsSslModeValue m_sslMode;
119 bool m_sslModeHasBeenSet = false;
120
121 Aws::String m_certificateArn;
122 bool m_certificateArnHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DatabaseMigrationService
127} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API DocDbDataProviderSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
DocDbDataProviderSettings & WithCertificateArn(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API DocDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DocDbDataProviderSettings & WithSslMode(DmsSslModeValue &&value)
DocDbDataProviderSettings & WithCertificateArn(const Aws::String &value)
DocDbDataProviderSettings & WithDatabaseName(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API DocDbDataProviderSettings()
DocDbDataProviderSettings & WithSslMode(const DmsSslModeValue &value)
DocDbDataProviderSettings & WithDatabaseName(Aws::String &&value)
DocDbDataProviderSettings & WithCertificateArn(const char *value)
DocDbDataProviderSettings & WithDatabaseName(const Aws::String &value)
DocDbDataProviderSettings & WithServerName(Aws::String &&value)
DocDbDataProviderSettings & WithServerName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue