AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
51 inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
52 inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
53 inline MongoDbDataProviderSettings& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
54 inline MongoDbDataProviderSettings& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
55 inline MongoDbDataProviderSettings& WithServerName(const char* value) { SetServerName(value); return *this;}
57
59
62 inline int GetPort() const{ return m_port; }
63 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
64 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
65 inline MongoDbDataProviderSettings& WithPort(int value) { SetPort(value); return *this;}
67
69
72 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
73 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
74 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
75 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
76 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
77 inline MongoDbDataProviderSettings& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
78 inline MongoDbDataProviderSettings& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
79 inline MongoDbDataProviderSettings& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
81
83
87 inline const DmsSslModeValue& GetSslMode() const{ return m_sslMode; }
88 inline bool SslModeHasBeenSet() const { return m_sslModeHasBeenSet; }
89 inline void SetSslMode(const DmsSslModeValue& value) { m_sslModeHasBeenSet = true; m_sslMode = value; }
90 inline void SetSslMode(DmsSslModeValue&& value) { m_sslModeHasBeenSet = true; m_sslMode = std::move(value); }
91 inline MongoDbDataProviderSettings& WithSslMode(const DmsSslModeValue& value) { SetSslMode(value); return *this;}
92 inline MongoDbDataProviderSettings& WithSslMode(DmsSslModeValue&& value) { SetSslMode(std::move(value)); return *this;}
94
96
100 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
101 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
102 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
103 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
104 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
106 inline MongoDbDataProviderSettings& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
107 inline MongoDbDataProviderSettings& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
109
111
115 inline const AuthTypeValue& GetAuthType() const{ return m_authType; }
116 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
117 inline void SetAuthType(const AuthTypeValue& value) { m_authTypeHasBeenSet = true; m_authType = value; }
118 inline void SetAuthType(AuthTypeValue&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
119 inline MongoDbDataProviderSettings& WithAuthType(const AuthTypeValue& value) { SetAuthType(value); return *this;}
120 inline MongoDbDataProviderSettings& WithAuthType(AuthTypeValue&& value) { SetAuthType(std::move(value)); return *this;}
122
124
129 inline const Aws::String& GetAuthSource() const{ return m_authSource; }
130 inline bool AuthSourceHasBeenSet() const { return m_authSourceHasBeenSet; }
131 inline void SetAuthSource(const Aws::String& value) { m_authSourceHasBeenSet = true; m_authSource = value; }
132 inline void SetAuthSource(Aws::String&& value) { m_authSourceHasBeenSet = true; m_authSource = std::move(value); }
133 inline void SetAuthSource(const char* value) { m_authSourceHasBeenSet = true; m_authSource.assign(value); }
134 inline MongoDbDataProviderSettings& WithAuthSource(const Aws::String& value) { SetAuthSource(value); return *this;}
135 inline MongoDbDataProviderSettings& WithAuthSource(Aws::String&& value) { SetAuthSource(std::move(value)); return *this;}
136 inline MongoDbDataProviderSettings& WithAuthSource(const char* value) { SetAuthSource(value); return *this;}
138
140
144 inline const AuthMechanismValue& GetAuthMechanism() const{ return m_authMechanism; }
145 inline bool AuthMechanismHasBeenSet() const { return m_authMechanismHasBeenSet; }
146 inline void SetAuthMechanism(const AuthMechanismValue& value) { m_authMechanismHasBeenSet = true; m_authMechanism = value; }
147 inline void SetAuthMechanism(AuthMechanismValue&& value) { m_authMechanismHasBeenSet = true; m_authMechanism = std::move(value); }
149 inline MongoDbDataProviderSettings& WithAuthMechanism(AuthMechanismValue&& value) { SetAuthMechanism(std::move(value)); return *this;}
151 private:
152
153 Aws::String m_serverName;
154 bool m_serverNameHasBeenSet = false;
155
156 int m_port;
157 bool m_portHasBeenSet = false;
158
159 Aws::String m_databaseName;
160 bool m_databaseNameHasBeenSet = false;
161
162 DmsSslModeValue m_sslMode;
163 bool m_sslModeHasBeenSet = false;
164
165 Aws::String m_certificateArn;
166 bool m_certificateArnHasBeenSet = false;
167
168 AuthTypeValue m_authType;
169 bool m_authTypeHasBeenSet = false;
170
171 Aws::String m_authSource;
172 bool m_authSourceHasBeenSet = false;
173
174 AuthMechanismValue m_authMechanism;
175 bool m_authMechanismHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace DatabaseMigrationService
180} // namespace Aws
MongoDbDataProviderSettings & WithAuthSource(Aws::String &&value)
MongoDbDataProviderSettings & WithSslMode(const DmsSslModeValue &value)
MongoDbDataProviderSettings & WithCertificateArn(Aws::String &&value)
MongoDbDataProviderSettings & WithDatabaseName(Aws::String &&value)
MongoDbDataProviderSettings & WithAuthSource(const Aws::String &value)
MongoDbDataProviderSettings & WithAuthMechanism(AuthMechanismValue &&value)
MongoDbDataProviderSettings & WithServerName(Aws::String &&value)
MongoDbDataProviderSettings & WithAuthMechanism(const AuthMechanismValue &value)
MongoDbDataProviderSettings & WithAuthType(const AuthTypeValue &value)
AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings(Aws::Utils::Json::JsonView jsonValue)
MongoDbDataProviderSettings & WithDatabaseName(const Aws::String &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API MongoDbDataProviderSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
MongoDbDataProviderSettings & WithServerName(const Aws::String &value)
MongoDbDataProviderSettings & WithCertificateArn(const Aws::String &value)
MongoDbDataProviderSettings & WithAuthType(AuthTypeValue &&value)
MongoDbDataProviderSettings & WithSslMode(DmsSslModeValue &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue