AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
MongoDbDataProviderSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9#include <aws/dms/model/AuthMechanismValue.h>
10#include <aws/dms/model/AuthTypeValue.h>
11#include <aws/dms/model/DmsSslModeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DatabaseMigrationService {
23namespace Model {
24
32 public:
33 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings() = default;
34 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetServerName() const { return m_serverName; }
43 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
44 template <typename ServerNameT = Aws::String>
45 void SetServerName(ServerNameT&& value) {
46 m_serverNameHasBeenSet = true;
47 m_serverName = std::forward<ServerNameT>(value);
48 }
49 template <typename ServerNameT = Aws::String>
51 SetServerName(std::forward<ServerNameT>(value));
52 return *this;
53 }
55
57
60 inline int GetPort() const { return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) {
63 m_portHasBeenSet = true;
64 m_port = value;
65 }
67 SetPort(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
77 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
78 template <typename DatabaseNameT = Aws::String>
79 void SetDatabaseName(DatabaseNameT&& value) {
80 m_databaseNameHasBeenSet = true;
81 m_databaseName = std::forward<DatabaseNameT>(value);
82 }
83 template <typename DatabaseNameT = Aws::String>
85 SetDatabaseName(std::forward<DatabaseNameT>(value));
86 return *this;
87 }
89
91
95 inline DmsSslModeValue GetSslMode() const { return m_sslMode; }
96 inline bool SslModeHasBeenSet() const { return m_sslModeHasBeenSet; }
97 inline void SetSslMode(DmsSslModeValue value) {
98 m_sslModeHasBeenSet = true;
99 m_sslMode = value;
100 }
102 SetSslMode(value);
103 return *this;
104 }
106
108
112 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
113 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
114 template <typename CertificateArnT = Aws::String>
115 void SetCertificateArn(CertificateArnT&& value) {
116 m_certificateArnHasBeenSet = true;
117 m_certificateArn = std::forward<CertificateArnT>(value);
118 }
119 template <typename CertificateArnT = Aws::String>
121 SetCertificateArn(std::forward<CertificateArnT>(value));
122 return *this;
123 }
125
127
131 inline AuthTypeValue GetAuthType() const { return m_authType; }
132 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
133 inline void SetAuthType(AuthTypeValue value) {
134 m_authTypeHasBeenSet = true;
135 m_authType = value;
136 }
138 SetAuthType(value);
139 return *this;
140 }
142
144
149 inline const Aws::String& GetAuthSource() const { return m_authSource; }
150 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
151 template <typename AuthSourceT = Aws::String>
152 void SetAuthSource(AuthSourceT&& value) {
153 m_authSourceHasBeenSet = true;
154 m_authSource = std::forward<AuthSourceT>(value);
155 }
156 template <typename AuthSourceT = Aws::String>
158 SetAuthSource(std::forward<AuthSourceT>(value));
159 return *this;
160 }
162
164
168 inline AuthMechanismValue GetAuthMechanism() const { return m_authMechanism; }
169 inline bool AuthMechanismHasBeenSet() const { return m_authMechanismHasBeenSet; }
171 m_authMechanismHasBeenSet = true;
172 m_authMechanism = value;
173 }
175 SetAuthMechanism(value);
176 return *this;
177 }
179 private:
180 Aws::String m_serverName;
181
182 int m_port{0};
183
184 Aws::String m_databaseName;
185
187
188 Aws::String m_certificateArn;
189
191
192 Aws::String m_authSource;
193
195 bool m_serverNameHasBeenSet = false;
196 bool m_portHasBeenSet = false;
197 bool m_databaseNameHasBeenSet = false;
198 bool m_sslModeHasBeenSet = false;
199 bool m_certificateArnHasBeenSet = false;
200 bool m_authTypeHasBeenSet = false;
201 bool m_authSourceHasBeenSet = false;
202 bool m_authMechanismHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace DatabaseMigrationService
207} // namespace Aws
MongoDbDataProviderSettings & WithSslMode(DmsSslModeValue value)
MongoDbDataProviderSettings & WithCertificateArn(CertificateArnT &&value)
MongoDbDataProviderSettings & WithAuthSource(AuthSourceT &&value)
MongoDbDataProviderSettings & WithAuthMechanism(AuthMechanismValue value)
MongoDbDataProviderSettings & WithServerName(ServerNameT &&value)
MongoDbDataProviderSettings & WithDatabaseName(DatabaseNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue