AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DatabaseSourceDescription.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 <aws/firehose/model/DatabaseSnapshotInfo.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Firehose
31{
32namespace Model
33{
34
43 {
44 public:
45 AWS_FIREHOSE_API DatabaseSourceDescription() = default;
48 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
57 inline DatabaseType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(DatabaseType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline DatabaseSourceDescription& WithType(DatabaseType value) { SetType(value); return *this;}
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) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
72 template<typename EndpointT = Aws::String>
73 DatabaseSourceDescription& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
75
77
83 inline int GetPort() const { return m_port; }
84 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
85 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
86 inline DatabaseSourceDescription& WithPort(int value) { SetPort(value); return *this;}
88
90
95 inline SSLMode GetSSLMode() const { return m_sSLMode; }
96 inline bool SSLModeHasBeenSet() const { return m_sSLModeHasBeenSet; }
97 inline void SetSSLMode(SSLMode value) { m_sSLModeHasBeenSet = true; m_sSLMode = value; }
98 inline DatabaseSourceDescription& WithSSLMode(SSLMode value) { SetSSLMode(value); return *this;}
100
102
107 inline const DatabaseList& GetDatabases() const { return m_databases; }
108 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
109 template<typename DatabasesT = DatabaseList>
110 void SetDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases = std::forward<DatabasesT>(value); }
111 template<typename DatabasesT = DatabaseList>
112 DatabaseSourceDescription& WithDatabases(DatabasesT&& value) { SetDatabases(std::forward<DatabasesT>(value)); return *this;}
114
116
121 inline const DatabaseTableList& GetTables() const { return m_tables; }
122 inline bool TablesHasBeenSet() const { return m_tablesHasBeenSet; }
123 template<typename TablesT = DatabaseTableList>
124 void SetTables(TablesT&& value) { m_tablesHasBeenSet = true; m_tables = std::forward<TablesT>(value); }
125 template<typename TablesT = DatabaseTableList>
126 DatabaseSourceDescription& WithTables(TablesT&& value) { SetTables(std::forward<TablesT>(value)); return *this;}
128
130
135 inline const DatabaseColumnList& GetColumns() const { return m_columns; }
136 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
137 template<typename ColumnsT = DatabaseColumnList>
138 void SetColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns = std::forward<ColumnsT>(value); }
139 template<typename ColumnsT = DatabaseColumnList>
140 DatabaseSourceDescription& WithColumns(ColumnsT&& value) { SetColumns(std::forward<ColumnsT>(value)); return *this;}
142
144
149 inline const Aws::Vector<Aws::String>& GetSurrogateKeys() const { return m_surrogateKeys; }
150 inline bool SurrogateKeysHasBeenSet() const { return m_surrogateKeysHasBeenSet; }
151 template<typename SurrogateKeysT = Aws::Vector<Aws::String>>
152 void SetSurrogateKeys(SurrogateKeysT&& value) { m_surrogateKeysHasBeenSet = true; m_surrogateKeys = std::forward<SurrogateKeysT>(value); }
153 template<typename SurrogateKeysT = Aws::Vector<Aws::String>>
154 DatabaseSourceDescription& WithSurrogateKeys(SurrogateKeysT&& value) { SetSurrogateKeys(std::forward<SurrogateKeysT>(value)); return *this;}
155 template<typename SurrogateKeysT = Aws::String>
156 DatabaseSourceDescription& AddSurrogateKeys(SurrogateKeysT&& value) { m_surrogateKeysHasBeenSet = true; m_surrogateKeys.emplace_back(std::forward<SurrogateKeysT>(value)); return *this; }
158
160
165 inline const Aws::String& GetSnapshotWatermarkTable() const { return m_snapshotWatermarkTable; }
166 inline bool SnapshotWatermarkTableHasBeenSet() const { return m_snapshotWatermarkTableHasBeenSet; }
167 template<typename SnapshotWatermarkTableT = Aws::String>
168 void SetSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) { m_snapshotWatermarkTableHasBeenSet = true; m_snapshotWatermarkTable = std::forward<SnapshotWatermarkTableT>(value); }
169 template<typename SnapshotWatermarkTableT = Aws::String>
170 DatabaseSourceDescription& WithSnapshotWatermarkTable(SnapshotWatermarkTableT&& value) { SetSnapshotWatermarkTable(std::forward<SnapshotWatermarkTableT>(value)); return *this;}
172
174
179 inline const Aws::Vector<DatabaseSnapshotInfo>& GetSnapshotInfo() const { return m_snapshotInfo; }
180 inline bool SnapshotInfoHasBeenSet() const { return m_snapshotInfoHasBeenSet; }
181 template<typename SnapshotInfoT = Aws::Vector<DatabaseSnapshotInfo>>
182 void SetSnapshotInfo(SnapshotInfoT&& value) { m_snapshotInfoHasBeenSet = true; m_snapshotInfo = std::forward<SnapshotInfoT>(value); }
183 template<typename SnapshotInfoT = Aws::Vector<DatabaseSnapshotInfo>>
184 DatabaseSourceDescription& WithSnapshotInfo(SnapshotInfoT&& value) { SetSnapshotInfo(std::forward<SnapshotInfoT>(value)); return *this;}
185 template<typename SnapshotInfoT = DatabaseSnapshotInfo>
186 DatabaseSourceDescription& AddSnapshotInfo(SnapshotInfoT&& value) { m_snapshotInfoHasBeenSet = true; m_snapshotInfo.emplace_back(std::forward<SnapshotInfoT>(value)); return *this; }
188
190
195 inline const DatabaseSourceAuthenticationConfiguration& GetDatabaseSourceAuthenticationConfiguration() const { return m_databaseSourceAuthenticationConfiguration; }
196 inline bool DatabaseSourceAuthenticationConfigurationHasBeenSet() const { return m_databaseSourceAuthenticationConfigurationHasBeenSet; }
197 template<typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
198 void SetDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) { m_databaseSourceAuthenticationConfigurationHasBeenSet = true; m_databaseSourceAuthenticationConfiguration = std::forward<DatabaseSourceAuthenticationConfigurationT>(value); }
199 template<typename DatabaseSourceAuthenticationConfigurationT = DatabaseSourceAuthenticationConfiguration>
200 DatabaseSourceDescription& WithDatabaseSourceAuthenticationConfiguration(DatabaseSourceAuthenticationConfigurationT&& value) { SetDatabaseSourceAuthenticationConfiguration(std::forward<DatabaseSourceAuthenticationConfigurationT>(value)); return *this;}
202
204
209 inline const DatabaseSourceVPCConfiguration& GetDatabaseSourceVPCConfiguration() const { return m_databaseSourceVPCConfiguration; }
210 inline bool DatabaseSourceVPCConfigurationHasBeenSet() const { return m_databaseSourceVPCConfigurationHasBeenSet; }
211 template<typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
212 void SetDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) { m_databaseSourceVPCConfigurationHasBeenSet = true; m_databaseSourceVPCConfiguration = std::forward<DatabaseSourceVPCConfigurationT>(value); }
213 template<typename DatabaseSourceVPCConfigurationT = DatabaseSourceVPCConfiguration>
214 DatabaseSourceDescription& WithDatabaseSourceVPCConfiguration(DatabaseSourceVPCConfigurationT&& value) { SetDatabaseSourceVPCConfiguration(std::forward<DatabaseSourceVPCConfigurationT>(value)); return *this;}
216 private:
217
219 bool m_typeHasBeenSet = false;
220
221 Aws::String m_endpoint;
222 bool m_endpointHasBeenSet = false;
223
224 int m_port{0};
225 bool m_portHasBeenSet = false;
226
227 SSLMode m_sSLMode{SSLMode::NOT_SET};
228 bool m_sSLModeHasBeenSet = false;
229
230 DatabaseList m_databases;
231 bool m_databasesHasBeenSet = false;
232
233 DatabaseTableList m_tables;
234 bool m_tablesHasBeenSet = false;
235
236 DatabaseColumnList m_columns;
237 bool m_columnsHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_surrogateKeys;
240 bool m_surrogateKeysHasBeenSet = false;
241
242 Aws::String m_snapshotWatermarkTable;
243 bool m_snapshotWatermarkTableHasBeenSet = false;
244
246 bool m_snapshotInfoHasBeenSet = false;
247
248 DatabaseSourceAuthenticationConfiguration m_databaseSourceAuthenticationConfiguration;
249 bool m_databaseSourceAuthenticationConfigurationHasBeenSet = false;
250
251 DatabaseSourceVPCConfiguration m_databaseSourceVPCConfiguration;
252 bool m_databaseSourceVPCConfigurationHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace Firehose
257} // 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