AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DatabaseSourceDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/firehose/Firehose_EXPORTS.h>
10#include <aws/firehose/model/DatabaseColumnList.h>
11#include <aws/firehose/model/DatabaseList.h>
12#include <aws/firehose/model/DatabaseSnapshotInfo.h>
13#include <aws/firehose/model/DatabaseSourceAuthenticationConfiguration.h>
14#include <aws/firehose/model/DatabaseSourceVPCConfiguration.h>
15#include <aws/firehose/model/DatabaseTableList.h>
16#include <aws/firehose/model/DatabaseType.h>
17#include <aws/firehose/model/SSLMode.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Firehose {
29namespace Model {
30
39 public:
40 AWS_FIREHOSE_API DatabaseSourceDescription() = default;
43 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
51 inline DatabaseType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(DatabaseType value) {
54 m_typeHasBeenSet = true;
55 m_type = value;
56 }
58 SetType(value);
59 return *this;
60 }
62
64
68 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
69 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
70 template <typename EndpointT = Aws::String>
71 void SetEndpoint(EndpointT&& value) {
72 m_endpointHasBeenSet = true;
73 m_endpoint = std::forward<EndpointT>(value);
74 }
75 template <typename EndpointT = Aws::String>
77 SetEndpoint(std::forward<EndpointT>(value));
78 return *this;
79 }
81
83
89 inline int GetPort() const { return m_port; }
90 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
91 inline void SetPort(int value) {
92 m_portHasBeenSet = true;
93 m_port = value;
94 }
96 SetPort(value);
97 return *this;
98 }
100
102
107 inline SSLMode GetSSLMode() const { return m_sSLMode; }
108 inline bool SSLModeHasBeenSet() const { return m_sSLModeHasBeenSet; }
109 inline void SetSSLMode(SSLMode value) {
110 m_sSLModeHasBeenSet = true;
111 m_sSLMode = value;
112 }
114 SetSSLMode(value);
115 return *this;
116 }
118
120
125 inline const DatabaseList& GetDatabases() const { return m_databases; }
126 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
127 template <typename DatabasesT = DatabaseList>
128 void SetDatabases(DatabasesT&& value) {
129 m_databasesHasBeenSet = true;
130 m_databases = std::forward<DatabasesT>(value);
131 }
132 template <typename DatabasesT = DatabaseList>
134 SetDatabases(std::forward<DatabasesT>(value));
135 return *this;
136 }
138
140
145 inline const DatabaseTableList& GetTables() const { return m_tables; }
146 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
147 template <typename TablesT = DatabaseTableList>
148 void SetTables(TablesT&& value) {
149 m_tablesHasBeenSet = true;
150 m_tables = std::forward<TablesT>(value);
151 }
152 template <typename TablesT = DatabaseTableList>
154 SetTables(std::forward<TablesT>(value));
155 return *this;
156 }
158
160
165 inline const DatabaseColumnList& GetColumns() const { return m_columns; }
166 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
167 template <typename ColumnsT = DatabaseColumnList>
168 void SetColumns(ColumnsT&& value) {
169 m_columnsHasBeenSet = true;
170 m_columns = std::forward<ColumnsT>(value);
171 }
172 template <typename ColumnsT = DatabaseColumnList>
174 SetColumns(std::forward<ColumnsT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::Vector<Aws::String>& GetSurrogateKeys() const { return m_surrogateKeys; }
186 inline bool SurrogateKeysHasBeenSet() const { return m_surrogateKeysHasBeenSet; }
187 template <typename SurrogateKeysT = Aws::Vector<Aws::String>>
188 void SetSurrogateKeys(SurrogateKeysT&& value) {
189 m_surrogateKeysHasBeenSet = true;
190 m_surrogateKeys = std::forward<SurrogateKeysT>(value);
191 }
192 template <typename SurrogateKeysT = Aws::Vector<Aws::String>>
194 SetSurrogateKeys(std::forward<SurrogateKeysT>(value));
195 return *this;
196 }
197 template <typename SurrogateKeysT = Aws::String>
199 m_surrogateKeysHasBeenSet = true;
200 m_surrogateKeys.emplace_back(std::forward<SurrogateKeysT>(value));
201 return *this;
202 }
204
206
211 inline const Aws::String& GetSnapshotWatermarkTable() const { return m_snapshotWatermarkTable; }
212 inline bool SnapshotWatermarkTableHasBeenSet() const { return m_snapshotWatermarkTableHasBeenSet; }
213 template <typename SnapshotWatermarkTableT = Aws::String>
214 void SetSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) {
215 m_snapshotWatermarkTableHasBeenSet = true;
216 m_snapshotWatermarkTable = std::forward<SnapshotWatermarkTableT>(value);
217 }
218 template <typename SnapshotWatermarkTableT = Aws::String>
219 DatabaseSourceDescription& WithSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) {
220 SetSnapshotWatermarkTable(std::forward<SnapshotWatermarkTableT>(value));
221 return *this;
222 }
224
226
231 inline const Aws::Vector<DatabaseSnapshotInfo>& GetSnapshotInfo() const { return m_snapshotInfo; }
232 inline bool SnapshotInfoHasBeenSet() const { return m_snapshotInfoHasBeenSet; }
233 template <typename SnapshotInfoT = Aws::Vector<DatabaseSnapshotInfo>>
234 void SetSnapshotInfo(SnapshotInfoT&& value) {
235 m_snapshotInfoHasBeenSet = true;
236 m_snapshotInfo = std::forward<SnapshotInfoT>(value);
237 }
238 template <typename SnapshotInfoT = Aws::Vector<DatabaseSnapshotInfo>>
240 SetSnapshotInfo(std::forward<SnapshotInfoT>(value));
241 return *this;
242 }
243 template <typename SnapshotInfoT = DatabaseSnapshotInfo>
245 m_snapshotInfoHasBeenSet = true;
246 m_snapshotInfo.emplace_back(std::forward<SnapshotInfoT>(value));
247 return *this;
248 }
250
252
258 return m_databaseSourceAuthenticationConfiguration;
259 }
260 inline bool DatabaseSourceAuthenticationConfigurationHasBeenSet() const { return m_databaseSourceAuthenticationConfigurationHasBeenSet; }
261 template <typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
262 void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) {
263 m_databaseSourceAuthenticationConfigurationHasBeenSet = true;
264 m_databaseSourceAuthenticationConfiguration = std::forward<DatabaseSourceAuthenticationConfigurationT>(value);
265 }
266 template <typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
267 DatabaseSourceDescription& WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) {
268 SetDatabaseSourceAuthenticationConfiguration(std::forward<DatabaseSourceAuthenticationConfigurationT>(value));
269 return *this;
270 }
272
274
279 inline const DatabaseSourceVPCConfiguration& GetDatabaseSourceVPCConfiguration() const { return m_databaseSourceVPCConfiguration; }
280 inline bool DatabaseSourceVPCConfigurationHasBeenSet() const { return m_databaseSourceVPCConfigurationHasBeenSet; }
281 template <typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
282 void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) {
283 m_databaseSourceVPCConfigurationHasBeenSet = true;
284 m_databaseSourceVPCConfiguration = std::forward<DatabaseSourceVPCConfigurationT>(value);
285 }
286 template <typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
287 DatabaseSourceDescription& WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) {
288 SetDatabaseSourceVPCConfiguration(std::forward<DatabaseSourceVPCConfigurationT>(value));
289 return *this;
290 }
292 private:
294
295 Aws::String m_endpoint;
296
297 int m_port{0};
298
299 SSLMode m_sSLMode{SSLMode::NOT_SET};
300
301 DatabaseList m_databases;
302
303 DatabaseTableList m_tables;
304
305 DatabaseColumnList m_columns;
306
307 Aws::Vector<Aws::String> m_surrogateKeys;
308
309 Aws::String m_snapshotWatermarkTable;
310
312
313 DatabaseSourceAuthenticationConfiguration m_databaseSourceAuthenticationConfiguration;
314
315 DatabaseSourceVPCConfiguration m_databaseSourceVPCConfiguration;
316 bool m_typeHasBeenSet = false;
317 bool m_endpointHasBeenSet = false;
318 bool m_portHasBeenSet = false;
319 bool m_sSLModeHasBeenSet = false;
320 bool m_databasesHasBeenSet = false;
321 bool m_tablesHasBeenSet = false;
322 bool m_columnsHasBeenSet = false;
323 bool m_surrogateKeysHasBeenSet = false;
324 bool m_snapshotWatermarkTableHasBeenSet = false;
325 bool m_snapshotInfoHasBeenSet = false;
326 bool m_databaseSourceAuthenticationConfigurationHasBeenSet = false;
327 bool m_databaseSourceVPCConfigurationHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace Firehose
332} // namespace Aws
const DatabaseSourceAuthenticationConfiguration & GetDatabaseSourceAuthenticationConfiguration() const
AWS_FIREHOSE_API DatabaseSourceDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
DatabaseSourceDescription & AddSnapshotInfo(SnapshotInfoT &&value)
AWS_FIREHOSE_API DatabaseSourceDescription()=default
DatabaseSourceDescription & WithType(DatabaseType value)
DatabaseSourceDescription & WithSSLMode(SSLMode value)
void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT &&value)
DatabaseSourceDescription & WithTables(TablesT &&value)
DatabaseSourceDescription & WithSnapshotWatermarkTable(SnapshotWatermarkTableT &&value)
const DatabaseSourceVPCConfiguration & GetDatabaseSourceVPCConfiguration() const
DatabaseSourceDescription & WithColumns(ColumnsT &&value)
DatabaseSourceDescription & WithPort(int value)
DatabaseSourceDescription & WithDatabases(DatabasesT &&value)
void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT &&value)
AWS_FIREHOSE_API DatabaseSourceDescription(Aws::Utils::Json::JsonView jsonValue)
DatabaseSourceDescription & WithSurrogateKeys(SurrogateKeysT &&value)
const Aws::Vector< DatabaseSnapshotInfo > & GetSnapshotInfo() const
const Aws::Vector< Aws::String > & GetSurrogateKeys() const
DatabaseSourceDescription & WithEndpoint(EndpointT &&value)
DatabaseSourceDescription & WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT &&value)
DatabaseSourceDescription & AddSurrogateKeys(SurrogateKeysT &&value)
DatabaseSourceDescription & WithSnapshotInfo(SnapshotInfoT &&value)
void SetSnapshotWatermarkTable(SnapshotWatermarkTableT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
DatabaseSourceDescription & WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue