AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MongoDbDataProviderSettings.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 <aws/dms/model/AuthTypeValue.h>
11#include <aws/dms/model/AuthMechanismValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DatabaseMigrationService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings() = default;
39 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetServerName() const { return m_serverName; }
49 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
50 template<typename ServerNameT = Aws::String>
51 void SetServerName(ServerNameT&& value) { m_serverNameHasBeenSet = true; m_serverName = std::forward<ServerNameT>(value); }
52 template<typename ServerNameT = Aws::String>
53 MongoDbDataProviderSettings& WithServerName(ServerNameT&& value) { SetServerName(std::forward<ServerNameT>(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 MongoDbDataProviderSettings& 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 template<typename DatabaseNameT = Aws::String>
73 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
74 template<typename DatabaseNameT = Aws::String>
75 MongoDbDataProviderSettings& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
77
79
83 inline DmsSslModeValue GetSslMode() const { return m_sslMode; }
84 inline bool SslModeHasBeenSet() const { return m_sslModeHasBeenSet; }
85 inline void SetSslMode(DmsSslModeValue value) { m_sslModeHasBeenSet = true; m_sslMode = value; }
86 inline MongoDbDataProviderSettings& WithSslMode(DmsSslModeValue value) { SetSslMode(value); return *this;}
88
90
94 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
95 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
96 template<typename CertificateArnT = Aws::String>
97 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
98 template<typename CertificateArnT = Aws::String>
99 MongoDbDataProviderSettings& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
101
103
107 inline AuthTypeValue GetAuthType() const { return m_authType; }
108 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
109 inline void SetAuthType(AuthTypeValue value) { m_authTypeHasBeenSet = true; m_authType = value; }
112
114
119 inline const Aws::String& GetAuthSource() const { return m_authSource; }
120 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
121 template<typename AuthSourceT = Aws::String>
122 void SetAuthSource(AuthSourceT&& value) { m_authSourceHasBeenSet = true; m_authSource = std::forward<AuthSourceT>(value); }
123 template<typename AuthSourceT = Aws::String>
124 MongoDbDataProviderSettings& WithAuthSource(AuthSourceT&& value) { SetAuthSource(std::forward<AuthSourceT>(value)); return *this;}
126
128
132 inline AuthMechanismValue GetAuthMechanism() const { return m_authMechanism; }
133 inline bool AuthMechanismHasBeenSet() const { return m_authMechanismHasBeenSet; }
134 inline void SetAuthMechanism(AuthMechanismValue value) { m_authMechanismHasBeenSet = true; m_authMechanism = value; }
137 private:
138
139 Aws::String m_serverName;
140 bool m_serverNameHasBeenSet = false;
141
142 int m_port{0};
143 bool m_portHasBeenSet = false;
144
145 Aws::String m_databaseName;
146 bool m_databaseNameHasBeenSet = false;
147
149 bool m_sslModeHasBeenSet = false;
150
151 Aws::String m_certificateArn;
152 bool m_certificateArnHasBeenSet = false;
153
155 bool m_authTypeHasBeenSet = false;
156
157 Aws::String m_authSource;
158 bool m_authSourceHasBeenSet = false;
159
161 bool m_authMechanismHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace DatabaseMigrationService
166} // 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