AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PostgreSqlDataProviderSettings.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/DmsSslModeValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DatabaseMigrationService {
21namespace Model {
22
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings() = default;
32 AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetServerName() const { return m_serverName; }
41 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
42 template <typename ServerNameT = Aws::String>
43 void SetServerName(ServerNameT&& value) {
44 m_serverNameHasBeenSet = true;
45 m_serverName = std::forward<ServerNameT>(value);
46 }
47 template <typename ServerNameT = Aws::String>
49 SetServerName(std::forward<ServerNameT>(value));
50 return *this;
51 }
53
55
58 inline int GetPort() const { return m_port; }
59 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
60 inline void SetPort(int value) {
61 m_portHasBeenSet = true;
62 m_port = value;
63 }
65 SetPort(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
75 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
76 template <typename DatabaseNameT = Aws::String>
77 void SetDatabaseName(DatabaseNameT&& value) {
78 m_databaseNameHasBeenSet = true;
79 m_databaseName = std::forward<DatabaseNameT>(value);
80 }
81 template <typename DatabaseNameT = Aws::String>
83 SetDatabaseName(std::forward<DatabaseNameT>(value));
84 return *this;
85 }
87
89
93 inline DmsSslModeValue GetSslMode() const { return m_sslMode; }
94 inline bool SslModeHasBeenSet() const { return m_sslModeHasBeenSet; }
95 inline void SetSslMode(DmsSslModeValue value) {
96 m_sslModeHasBeenSet = true;
97 m_sslMode = value;
98 }
100 SetSslMode(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
111 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
112 template <typename CertificateArnT = Aws::String>
113 void SetCertificateArn(CertificateArnT&& value) {
114 m_certificateArnHasBeenSet = true;
115 m_certificateArn = std::forward<CertificateArnT>(value);
116 }
117 template <typename CertificateArnT = Aws::String>
119 SetCertificateArn(std::forward<CertificateArnT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetS3Path() const { return m_s3Path; }
130 inline bool S3PathHasBeenSet() const { return m_s3PathHasBeenSet; }
131 template <typename S3PathT = Aws::String>
132 void SetS3Path(S3PathT&& value) {
133 m_s3PathHasBeenSet = true;
134 m_s3Path = std::forward<S3PathT>(value);
135 }
136 template <typename S3PathT = Aws::String>
138 SetS3Path(std::forward<S3PathT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetS3AccessRoleArn() const { return m_s3AccessRoleArn; }
148 inline bool S3AccessRoleArnHasBeenSet() const { return m_s3AccessRoleArnHasBeenSet; }
149 template <typename S3AccessRoleArnT = Aws::String>
150 void SetS3AccessRoleArn(S3AccessRoleArnT&& value) {
151 m_s3AccessRoleArnHasBeenSet = true;
152 m_s3AccessRoleArn = std::forward<S3AccessRoleArnT>(value);
153 }
154 template <typename S3AccessRoleArnT = Aws::String>
156 SetS3AccessRoleArn(std::forward<S3AccessRoleArnT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_serverName;
162
163 int m_port{0};
164
165 Aws::String m_databaseName;
166
168
169 Aws::String m_certificateArn;
170
171 Aws::String m_s3Path;
172
173 Aws::String m_s3AccessRoleArn;
174 bool m_serverNameHasBeenSet = false;
175 bool m_portHasBeenSet = false;
176 bool m_databaseNameHasBeenSet = false;
177 bool m_sslModeHasBeenSet = false;
178 bool m_certificateArnHasBeenSet = false;
179 bool m_s3PathHasBeenSet = false;
180 bool m_s3AccessRoleArnHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace DatabaseMigrationService
185} // namespace Aws
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
PostgreSqlDataProviderSettings & WithDatabaseName(DatabaseNameT &&value)
PostgreSqlDataProviderSettings & WithSslMode(DmsSslModeValue value)
AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings()=default
AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
PostgreSqlDataProviderSettings & WithS3AccessRoleArn(S3AccessRoleArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API PostgreSqlDataProviderSettings(Aws::Utils::Json::JsonView jsonValue)
PostgreSqlDataProviderSettings & WithCertificateArn(CertificateArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue