AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DatabaseSourceConfiguration.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/model/DatabaseType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/firehose/model/SSLMode.h>
11#include <aws/firehose/model/DatabaseList.h>
12#include <aws/firehose/model/DatabaseTableList.h>
13#include <aws/firehose/model/DatabaseColumnList.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/firehose/model/DatabaseSourceAuthenticationConfiguration.h>
16#include <aws/firehose/model/DatabaseSourceVPCConfiguration.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Firehose
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_FIREHOSE_API DatabaseSourceConfiguration() = default;
47 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
56 inline DatabaseType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(DatabaseType value) { m_typeHasBeenSet = true; m_type = value; }
59 inline DatabaseSourceConfiguration& WithType(DatabaseType value) { SetType(value); return *this;}
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) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
71 template<typename EndpointT = Aws::String>
72 DatabaseSourceConfiguration& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
74
76
82 inline int GetPort() const { return m_port; }
83 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
84 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
85 inline DatabaseSourceConfiguration& WithPort(int value) { SetPort(value); return *this;}
87
89
94 inline SSLMode GetSSLMode() const { return m_sSLMode; }
95 inline bool SSLModeHasBeenSet() const { return m_sSLModeHasBeenSet; }
96 inline void SetSSLMode(SSLMode value) { m_sSLModeHasBeenSet = true; m_sSLMode = value; }
97 inline DatabaseSourceConfiguration& WithSSLMode(SSLMode value) { SetSSLMode(value); return *this;}
99
101
106 inline const DatabaseList& GetDatabases() const { return m_databases; }
107 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
108 template<typename DatabasesT = DatabaseList>
109 void SetDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases = std::forward<DatabasesT>(value); }
110 template<typename DatabasesT = DatabaseList>
111 DatabaseSourceConfiguration& WithDatabases(DatabasesT&& value) { SetDatabases(std::forward<DatabasesT>(value)); return *this;}
113
115
120 inline const DatabaseTableList& GetTables() const { return m_tables; }
121 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
122 template<typename TablesT = DatabaseTableList>
123 void SetTables(TablesT&& value) { m_tablesHasBeenSet = true; m_tables = std::forward<TablesT>(value); }
124 template<typename TablesT = DatabaseTableList>
125 DatabaseSourceConfiguration& WithTables(TablesT&& value) { SetTables(std::forward<TablesT>(value)); return *this;}
127
129
134 inline const DatabaseColumnList& GetColumns() const { return m_columns; }
135 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
136 template<typename ColumnsT = DatabaseColumnList>
137 void SetColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns = std::forward<ColumnsT>(value); }
138 template<typename ColumnsT = DatabaseColumnList>
139 DatabaseSourceConfiguration& WithColumns(ColumnsT&& value) { SetColumns(std::forward<ColumnsT>(value)); return *this;}
141
143
148 inline const Aws::Vector<Aws::String>& GetSurrogateKeys() const { return m_surrogateKeys; }
149 inline bool SurrogateKeysHasBeenSet() const { return m_surrogateKeysHasBeenSet; }
150 template<typename SurrogateKeysT = Aws::Vector<Aws::String>>
151 void SetSurrogateKeys(SurrogateKeysT&& value) { m_surrogateKeysHasBeenSet = true; m_surrogateKeys = std::forward<SurrogateKeysT>(value); }
152 template<typename SurrogateKeysT = Aws::Vector<Aws::String>>
153 DatabaseSourceConfiguration& WithSurrogateKeys(SurrogateKeysT&& value) { SetSurrogateKeys(std::forward<SurrogateKeysT>(value)); return *this;}
154 template<typename SurrogateKeysT = Aws::String>
155 DatabaseSourceConfiguration& AddSurrogateKeys(SurrogateKeysT&& value) { m_surrogateKeysHasBeenSet = true; m_surrogateKeys.emplace_back(std::forward<SurrogateKeysT>(value)); return *this; }
157
159
164 inline const Aws::String& GetSnapshotWatermarkTable() const { return m_snapshotWatermarkTable; }
165 inline bool SnapshotWatermarkTableHasBeenSet() const { return m_snapshotWatermarkTableHasBeenSet; }
166 template<typename SnapshotWatermarkTableT = Aws::String>
167 void SetSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) { m_snapshotWatermarkTableHasBeenSet = true; m_snapshotWatermarkTable = std::forward<SnapshotWatermarkTableT>(value); }
168 template<typename SnapshotWatermarkTableT = Aws::String>
169 DatabaseSourceConfiguration& WithSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) { SetSnapshotWatermarkTable(std::forward<SnapshotWatermarkTableT>(value)); return *this;}
171
173
178 inline const DatabaseSourceAuthenticationConfiguration& GetDatabaseSourceAuthenticationConfiguration() const { return m_databaseSourceAuthenticationConfiguration; }
179 inline bool DatabaseSourceAuthenticationConfigurationHasBeenSet() const { return m_databaseSourceAuthenticationConfigurationHasBeenSet; }
180 template<typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
181 void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) { m_databaseSourceAuthenticationConfigurationHasBeenSet = true; m_databaseSourceAuthenticationConfiguration = std::forward<DatabaseSourceAuthenticationConfigurationT>(value); }
182 template<typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
183 DatabaseSourceConfiguration& WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) { SetDatabaseSourceAuthenticationConfiguration(std::forward<DatabaseSourceAuthenticationConfigurationT>(value)); return *this;}
185
187
192 inline const DatabaseSourceVPCConfiguration& GetDatabaseSourceVPCConfiguration() const { return m_databaseSourceVPCConfiguration; }
193 inline bool DatabaseSourceVPCConfigurationHasBeenSet() const { return m_databaseSourceVPCConfigurationHasBeenSet; }
194 template<typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
195 void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) { m_databaseSourceVPCConfigurationHasBeenSet = true; m_databaseSourceVPCConfiguration = std::forward<DatabaseSourceVPCConfigurationT>(value); }
196 template<typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
197 DatabaseSourceConfiguration& WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) { SetDatabaseSourceVPCConfiguration(std::forward<DatabaseSourceVPCConfigurationT>(value)); return *this;}
199 private:
200
202 bool m_typeHasBeenSet = false;
203
204 Aws::String m_endpoint;
205 bool m_endpointHasBeenSet = false;
206
207 int m_port{0};
208 bool m_portHasBeenSet = false;
209
210 SSLMode m_sSLMode{SSLMode::NOT_SET};
211 bool m_sSLModeHasBeenSet = false;
212
213 DatabaseList m_databases;
214 bool m_databasesHasBeenSet = false;
215
216 DatabaseTableList m_tables;
217 bool m_tablesHasBeenSet = false;
218
219 DatabaseColumnList m_columns;
220 bool m_columnsHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_surrogateKeys;
223 bool m_surrogateKeysHasBeenSet = false;
224
225 Aws::String m_snapshotWatermarkTable;
226 bool m_snapshotWatermarkTableHasBeenSet = false;
227
228 DatabaseSourceAuthenticationConfiguration m_databaseSourceAuthenticationConfiguration;
229 bool m_databaseSourceAuthenticationConfigurationHasBeenSet = false;
230
231 DatabaseSourceVPCConfiguration m_databaseSourceVPCConfiguration;
232 bool m_databaseSourceVPCConfigurationHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Firehose
237} // 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