AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DatabaseSourceConfiguration.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/DatabaseSourceAuthenticationConfiguration.h>
13#include <aws/firehose/model/DatabaseSourceVPCConfiguration.h>
14#include <aws/firehose/model/DatabaseTableList.h>
15#include <aws/firehose/model/DatabaseType.h>
16#include <aws/firehose/model/SSLMode.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Firehose {
28namespace Model {
29
38 public:
39 AWS_FIREHOSE_API DatabaseSourceConfiguration() = default;
42 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
50 inline DatabaseType GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(DatabaseType value) {
53 m_typeHasBeenSet = true;
54 m_type = value;
55 }
57 SetType(value);
58 return *this;
59 }
61
63
67 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
68 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
69 template <typename EndpointT = Aws::String>
70 void SetEndpoint(EndpointT&& value) {
71 m_endpointHasBeenSet = true;
72 m_endpoint = std::forward<EndpointT>(value);
73 }
74 template <typename EndpointT = Aws::String>
76 SetEndpoint(std::forward<EndpointT>(value));
77 return *this;
78 }
80
82
88 inline int GetPort() const { return m_port; }
89 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
90 inline void SetPort(int value) {
91 m_portHasBeenSet = true;
92 m_port = value;
93 }
95 SetPort(value);
96 return *this;
97 }
99
101
106 inline SSLMode GetSSLMode() const { return m_sSLMode; }
107 inline bool SSLModeHasBeenSet() const { return m_sSLModeHasBeenSet; }
108 inline void SetSSLMode(SSLMode value) {
109 m_sSLModeHasBeenSet = true;
110 m_sSLMode = value;
111 }
113 SetSSLMode(value);
114 return *this;
115 }
117
119
124 inline const DatabaseList& GetDatabases() const { return m_databases; }
125 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
126 template <typename DatabasesT = DatabaseList>
127 void SetDatabases(DatabasesT&& value) {
128 m_databasesHasBeenSet = true;
129 m_databases = std::forward<DatabasesT>(value);
130 }
131 template <typename DatabasesT = DatabaseList>
133 SetDatabases(std::forward<DatabasesT>(value));
134 return *this;
135 }
137
139
144 inline const DatabaseTableList& GetTables() const { return m_tables; }
145 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
146 template <typename TablesT = DatabaseTableList>
147 void SetTables(TablesT&& value) {
148 m_tablesHasBeenSet = true;
149 m_tables = std::forward<TablesT>(value);
150 }
151 template <typename TablesT = DatabaseTableList>
153 SetTables(std::forward<TablesT>(value));
154 return *this;
155 }
157
159
164 inline const DatabaseColumnList& GetColumns() const { return m_columns; }
165 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
166 template <typename ColumnsT = DatabaseColumnList>
167 void SetColumns(ColumnsT&& value) {
168 m_columnsHasBeenSet = true;
169 m_columns = std::forward<ColumnsT>(value);
170 }
171 template <typename ColumnsT = DatabaseColumnList>
173 SetColumns(std::forward<ColumnsT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::Vector<Aws::String>& GetSurrogateKeys() const { return m_surrogateKeys; }
185 inline bool SurrogateKeysHasBeenSet() const { return m_surrogateKeysHasBeenSet; }
186 template <typename SurrogateKeysT = Aws::Vector<Aws::String>>
187 void SetSurrogateKeys(SurrogateKeysT&& value) {
188 m_surrogateKeysHasBeenSet = true;
189 m_surrogateKeys = std::forward<SurrogateKeysT>(value);
190 }
191 template <typename SurrogateKeysT = Aws::Vector<Aws::String>>
193 SetSurrogateKeys(std::forward<SurrogateKeysT>(value));
194 return *this;
195 }
196 template <typename SurrogateKeysT = Aws::String>
198 m_surrogateKeysHasBeenSet = true;
199 m_surrogateKeys.emplace_back(std::forward<SurrogateKeysT>(value));
200 return *this;
201 }
203
205
210 inline const Aws::String& GetSnapshotWatermarkTable() const { return m_snapshotWatermarkTable; }
211 inline bool SnapshotWatermarkTableHasBeenSet() const { return m_snapshotWatermarkTableHasBeenSet; }
212 template <typename SnapshotWatermarkTableT = Aws::String>
213 void SetSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) {
214 m_snapshotWatermarkTableHasBeenSet = true;
215 m_snapshotWatermarkTable = std::forward<SnapshotWatermarkTableT>(value);
216 }
217 template <typename SnapshotWatermarkTableT = Aws::String>
218 DatabaseSourceConfiguration& WithSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) {
219 SetSnapshotWatermarkTable(std::forward<SnapshotWatermarkTableT>(value));
220 return *this;
221 }
223
225
231 return m_databaseSourceAuthenticationConfiguration;
232 }
233 inline bool DatabaseSourceAuthenticationConfigurationHasBeenSet() const { return m_databaseSourceAuthenticationConfigurationHasBeenSet; }
234 template <typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
235 void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) {
236 m_databaseSourceAuthenticationConfigurationHasBeenSet = true;
237 m_databaseSourceAuthenticationConfiguration = std::forward<DatabaseSourceAuthenticationConfigurationT>(value);
238 }
239 template <typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
240 DatabaseSourceConfiguration& WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) {
241 SetDatabaseSourceAuthenticationConfiguration(std::forward<DatabaseSourceAuthenticationConfigurationT>(value));
242 return *this;
243 }
245
247
252 inline const DatabaseSourceVPCConfiguration& GetDatabaseSourceVPCConfiguration() const { return m_databaseSourceVPCConfiguration; }
253 inline bool DatabaseSourceVPCConfigurationHasBeenSet() const { return m_databaseSourceVPCConfigurationHasBeenSet; }
254 template <typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
255 void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) {
256 m_databaseSourceVPCConfigurationHasBeenSet = true;
257 m_databaseSourceVPCConfiguration = std::forward<DatabaseSourceVPCConfigurationT>(value);
258 }
259 template <typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
260 DatabaseSourceConfiguration& WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) {
261 SetDatabaseSourceVPCConfiguration(std::forward<DatabaseSourceVPCConfigurationT>(value));
262 return *this;
263 }
265 private:
267
268 Aws::String m_endpoint;
269
270 int m_port{0};
271
272 SSLMode m_sSLMode{SSLMode::NOT_SET};
273
274 DatabaseList m_databases;
275
276 DatabaseTableList m_tables;
277
278 DatabaseColumnList m_columns;
279
280 Aws::Vector<Aws::String> m_surrogateKeys;
281
282 Aws::String m_snapshotWatermarkTable;
283
284 DatabaseSourceAuthenticationConfiguration m_databaseSourceAuthenticationConfiguration;
285
286 DatabaseSourceVPCConfiguration m_databaseSourceVPCConfiguration;
287 bool m_typeHasBeenSet = false;
288 bool m_endpointHasBeenSet = false;
289 bool m_portHasBeenSet = false;
290 bool m_sSLModeHasBeenSet = false;
291 bool m_databasesHasBeenSet = false;
292 bool m_tablesHasBeenSet = false;
293 bool m_columnsHasBeenSet = false;
294 bool m_surrogateKeysHasBeenSet = false;
295 bool m_snapshotWatermarkTableHasBeenSet = false;
296 bool m_databaseSourceAuthenticationConfigurationHasBeenSet = false;
297 bool m_databaseSourceVPCConfigurationHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace Firehose
302} // namespace Aws
void SetSnapshotWatermarkTable(SnapshotWatermarkTableT &&value)
DatabaseSourceConfiguration & WithEndpoint(EndpointT &&value)
DatabaseSourceConfiguration & WithType(DatabaseType value)
DatabaseSourceConfiguration & WithSSLMode(SSLMode value)
const DatabaseSourceVPCConfiguration & GetDatabaseSourceVPCConfiguration() const
DatabaseSourceConfiguration & AddSurrogateKeys(SurrogateKeysT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT &&value)
void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT &&value)
DatabaseSourceConfiguration & WithColumns(ColumnsT &&value)
DatabaseSourceConfiguration & WithSnapshotWatermarkTable(SnapshotWatermarkTableT &&value)
DatabaseSourceConfiguration & WithSurrogateKeys(SurrogateKeysT &&value)
const Aws::Vector< Aws::String > & GetSurrogateKeys() const
DatabaseSourceConfiguration & WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT &&value)
DatabaseSourceConfiguration & WithTables(TablesT &&value)
DatabaseSourceConfiguration & WithDatabases(DatabasesT &&value)
const DatabaseSourceAuthenticationConfiguration & GetDatabaseSourceAuthenticationConfiguration() const
AWS_FIREHOSE_API DatabaseSourceConfiguration()=default
AWS_FIREHOSE_API DatabaseSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DatabaseSourceConfiguration & WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT &&value)
AWS_FIREHOSE_API DatabaseSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue