AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SnowflakeNodeData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/Option.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API SnowflakeNodeData() = default;
37
39
43 inline const Aws::String& GetSourceType() const { return m_sourceType; }
44 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
45 template <typename SourceTypeT = Aws::String>
46 void SetSourceType(SourceTypeT&& value) {
47 m_sourceTypeHasBeenSet = true;
48 m_sourceType = std::forward<SourceTypeT>(value);
49 }
50 template <typename SourceTypeT = Aws::String>
51 SnowflakeNodeData& WithSourceType(SourceTypeT&& value) {
52 SetSourceType(std::forward<SourceTypeT>(value));
53 return *this;
54 }
56
58
61 inline const Option& GetConnection() const { return m_connection; }
62 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
63 template <typename ConnectionT = Option>
64 void SetConnection(ConnectionT&& value) {
65 m_connectionHasBeenSet = true;
66 m_connection = std::forward<ConnectionT>(value);
67 }
68 template <typename ConnectionT = Option>
69 SnowflakeNodeData& WithConnection(ConnectionT&& value) {
70 SetConnection(std::forward<ConnectionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSchema() const { return m_schema; }
80 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
81 template <typename SchemaT = Aws::String>
82 void SetSchema(SchemaT&& value) {
83 m_schemaHasBeenSet = true;
84 m_schema = std::forward<SchemaT>(value);
85 }
86 template <typename SchemaT = Aws::String>
87 SnowflakeNodeData& WithSchema(SchemaT&& value) {
88 SetSchema(std::forward<SchemaT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTable() const { return m_table; }
98 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
99 template <typename TableT = Aws::String>
100 void SetTable(TableT&& value) {
101 m_tableHasBeenSet = true;
102 m_table = std::forward<TableT>(value);
103 }
104 template <typename TableT = Aws::String>
105 SnowflakeNodeData& WithTable(TableT&& value) {
106 SetTable(std::forward<TableT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDatabase() const { return m_database; }
116 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
117 template <typename DatabaseT = Aws::String>
118 void SetDatabase(DatabaseT&& value) {
119 m_databaseHasBeenSet = true;
120 m_database = std::forward<DatabaseT>(value);
121 }
122 template <typename DatabaseT = Aws::String>
123 SnowflakeNodeData& WithDatabase(DatabaseT&& value) {
124 SetDatabase(std::forward<DatabaseT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetTempDir() const { return m_tempDir; }
134 inline bool TempDirHasBeenSet() const { return m_tempDirHasBeenSet; }
135 template <typename TempDirT = Aws::String>
136 void SetTempDir(TempDirT&& value) {
137 m_tempDirHasBeenSet = true;
138 m_tempDir = std::forward<TempDirT>(value);
139 }
140 template <typename TempDirT = Aws::String>
141 SnowflakeNodeData& WithTempDir(TempDirT&& value) {
142 SetTempDir(std::forward<TempDirT>(value));
143 return *this;
144 }
146
148
151 inline const Option& GetIamRole() const { return m_iamRole; }
152 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
153 template <typename IamRoleT = Option>
154 void SetIamRole(IamRoleT&& value) {
155 m_iamRoleHasBeenSet = true;
156 m_iamRole = std::forward<IamRoleT>(value);
157 }
158 template <typename IamRoleT = Option>
159 SnowflakeNodeData& WithIamRole(IamRoleT&& value) {
160 SetIamRole(std::forward<IamRoleT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
171 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
172 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
173 void SetAdditionalOptions(AdditionalOptionsT&& value) {
174 m_additionalOptionsHasBeenSet = true;
175 m_additionalOptions = std::forward<AdditionalOptionsT>(value);
176 }
177 template <typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
178 SnowflakeNodeData& WithAdditionalOptions(AdditionalOptionsT&& value) {
179 SetAdditionalOptions(std::forward<AdditionalOptionsT>(value));
180 return *this;
181 }
182 template <typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
183 SnowflakeNodeData& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
184 m_additionalOptionsHasBeenSet = true;
185 m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetSampleQuery() const { return m_sampleQuery; }
196 inline bool SampleQueryHasBeenSet() const { return m_sampleQueryHasBeenSet; }
197 template <typename SampleQueryT = Aws::String>
198 void SetSampleQuery(SampleQueryT&& value) {
199 m_sampleQueryHasBeenSet = true;
200 m_sampleQuery = std::forward<SampleQueryT>(value);
201 }
202 template <typename SampleQueryT = Aws::String>
203 SnowflakeNodeData& WithSampleQuery(SampleQueryT&& value) {
204 SetSampleQuery(std::forward<SampleQueryT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetPreAction() const { return m_preAction; }
215 inline bool PreActionHasBeenSet() const { return m_preActionHasBeenSet; }
216 template <typename PreActionT = Aws::String>
217 void SetPreAction(PreActionT&& value) {
218 m_preActionHasBeenSet = true;
219 m_preAction = std::forward<PreActionT>(value);
220 }
221 template <typename PreActionT = Aws::String>
222 SnowflakeNodeData& WithPreAction(PreActionT&& value) {
223 SetPreAction(std::forward<PreActionT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::String& GetPostAction() const { return m_postAction; }
234 inline bool PostActionHasBeenSet() const { return m_postActionHasBeenSet; }
235 template <typename PostActionT = Aws::String>
236 void SetPostAction(PostActionT&& value) {
237 m_postActionHasBeenSet = true;
238 m_postAction = std::forward<PostActionT>(value);
239 }
240 template <typename PostActionT = Aws::String>
241 SnowflakeNodeData& WithPostAction(PostActionT&& value) {
242 SetPostAction(std::forward<PostActionT>(value));
243 return *this;
244 }
246
248
253 inline const Aws::String& GetAction() const { return m_action; }
254 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
255 template <typename ActionT = Aws::String>
256 void SetAction(ActionT&& value) {
257 m_actionHasBeenSet = true;
258 m_action = std::forward<ActionT>(value);
259 }
260 template <typename ActionT = Aws::String>
261 SnowflakeNodeData& WithAction(ActionT&& value) {
262 SetAction(std::forward<ActionT>(value));
263 return *this;
264 }
266
268
273 inline bool GetUpsert() const { return m_upsert; }
274 inline bool UpsertHasBeenSet() const { return m_upsertHasBeenSet; }
275 inline void SetUpsert(bool value) {
276 m_upsertHasBeenSet = true;
277 m_upsert = value;
278 }
279 inline SnowflakeNodeData& WithUpsert(bool value) {
280 SetUpsert(value);
281 return *this;
282 }
284
286
292 inline const Aws::String& GetMergeAction() const { return m_mergeAction; }
293 inline bool MergeActionHasBeenSet() const { return m_mergeActionHasBeenSet; }
294 template <typename MergeActionT = Aws::String>
295 void SetMergeAction(MergeActionT&& value) {
296 m_mergeActionHasBeenSet = true;
297 m_mergeAction = std::forward<MergeActionT>(value);
298 }
299 template <typename MergeActionT = Aws::String>
300 SnowflakeNodeData& WithMergeAction(MergeActionT&& value) {
301 SetMergeAction(std::forward<MergeActionT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::String& GetMergeWhenMatched() const { return m_mergeWhenMatched; }
312 inline bool MergeWhenMatchedHasBeenSet() const { return m_mergeWhenMatchedHasBeenSet; }
313 template <typename MergeWhenMatchedT = Aws::String>
314 void SetMergeWhenMatched(MergeWhenMatchedT&& value) {
315 m_mergeWhenMatchedHasBeenSet = true;
316 m_mergeWhenMatched = std::forward<MergeWhenMatchedT>(value);
317 }
318 template <typename MergeWhenMatchedT = Aws::String>
319 SnowflakeNodeData& WithMergeWhenMatched(MergeWhenMatchedT&& value) {
320 SetMergeWhenMatched(std::forward<MergeWhenMatchedT>(value));
321 return *this;
322 }
324
326
330 inline const Aws::String& GetMergeWhenNotMatched() const { return m_mergeWhenNotMatched; }
331 inline bool MergeWhenNotMatchedHasBeenSet() const { return m_mergeWhenNotMatchedHasBeenSet; }
332 template <typename MergeWhenNotMatchedT = Aws::String>
333 void SetMergeWhenNotMatched(MergeWhenNotMatchedT&& value) {
334 m_mergeWhenNotMatchedHasBeenSet = true;
335 m_mergeWhenNotMatched = std::forward<MergeWhenNotMatchedT>(value);
336 }
337 template <typename MergeWhenNotMatchedT = Aws::String>
338 SnowflakeNodeData& WithMergeWhenNotMatched(MergeWhenNotMatchedT&& value) {
339 SetMergeWhenNotMatched(std::forward<MergeWhenNotMatchedT>(value));
340 return *this;
341 }
343
345
348 inline const Aws::String& GetMergeClause() const { return m_mergeClause; }
349 inline bool MergeClauseHasBeenSet() const { return m_mergeClauseHasBeenSet; }
350 template <typename MergeClauseT = Aws::String>
351 void SetMergeClause(MergeClauseT&& value) {
352 m_mergeClauseHasBeenSet = true;
353 m_mergeClause = std::forward<MergeClauseT>(value);
354 }
355 template <typename MergeClauseT = Aws::String>
356 SnowflakeNodeData& WithMergeClause(MergeClauseT&& value) {
357 SetMergeClause(std::forward<MergeClauseT>(value));
358 return *this;
359 }
361
363
368 inline const Aws::String& GetStagingTable() const { return m_stagingTable; }
369 inline bool StagingTableHasBeenSet() const { return m_stagingTableHasBeenSet; }
370 template <typename StagingTableT = Aws::String>
371 void SetStagingTable(StagingTableT&& value) {
372 m_stagingTableHasBeenSet = true;
373 m_stagingTable = std::forward<StagingTableT>(value);
374 }
375 template <typename StagingTableT = Aws::String>
376 SnowflakeNodeData& WithStagingTable(StagingTableT&& value) {
377 SetStagingTable(std::forward<StagingTableT>(value));
378 return *this;
379 }
381
383
389 inline const Aws::Vector<Option>& GetSelectedColumns() const { return m_selectedColumns; }
390 inline bool SelectedColumnsHasBeenSet() const { return m_selectedColumnsHasBeenSet; }
391 template <typename SelectedColumnsT = Aws::Vector<Option>>
392 void SetSelectedColumns(SelectedColumnsT&& value) {
393 m_selectedColumnsHasBeenSet = true;
394 m_selectedColumns = std::forward<SelectedColumnsT>(value);
395 }
396 template <typename SelectedColumnsT = Aws::Vector<Option>>
397 SnowflakeNodeData& WithSelectedColumns(SelectedColumnsT&& value) {
398 SetSelectedColumns(std::forward<SelectedColumnsT>(value));
399 return *this;
400 }
401 template <typename SelectedColumnsT = Option>
402 SnowflakeNodeData& AddSelectedColumns(SelectedColumnsT&& value) {
403 m_selectedColumnsHasBeenSet = true;
404 m_selectedColumns.emplace_back(std::forward<SelectedColumnsT>(value));
405 return *this;
406 }
408
410
416 inline bool GetAutoPushdown() const { return m_autoPushdown; }
417 inline bool AutoPushdownHasBeenSet() const { return m_autoPushdownHasBeenSet; }
418 inline void SetAutoPushdown(bool value) {
419 m_autoPushdownHasBeenSet = true;
420 m_autoPushdown = value;
421 }
423 SetAutoPushdown(value);
424 return *this;
425 }
427
429
434 inline const Aws::Vector<Option>& GetTableSchema() const { return m_tableSchema; }
435 inline bool TableSchemaHasBeenSet() const { return m_tableSchemaHasBeenSet; }
436 template <typename TableSchemaT = Aws::Vector<Option>>
437 void SetTableSchema(TableSchemaT&& value) {
438 m_tableSchemaHasBeenSet = true;
439 m_tableSchema = std::forward<TableSchemaT>(value);
440 }
441 template <typename TableSchemaT = Aws::Vector<Option>>
442 SnowflakeNodeData& WithTableSchema(TableSchemaT&& value) {
443 SetTableSchema(std::forward<TableSchemaT>(value));
444 return *this;
445 }
446 template <typename TableSchemaT = Option>
447 SnowflakeNodeData& AddTableSchema(TableSchemaT&& value) {
448 m_tableSchemaHasBeenSet = true;
449 m_tableSchema.emplace_back(std::forward<TableSchemaT>(value));
450 return *this;
451 }
453 private:
454 Aws::String m_sourceType;
455
456 Option m_connection;
457
458 Aws::String m_schema;
459
460 Aws::String m_table;
461
462 Aws::String m_database;
463
464 Aws::String m_tempDir;
465
466 Option m_iamRole;
467
468 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
469
470 Aws::String m_sampleQuery;
471
472 Aws::String m_preAction;
473
474 Aws::String m_postAction;
475
476 Aws::String m_action;
477
478 bool m_upsert{false};
479
480 Aws::String m_mergeAction;
481
482 Aws::String m_mergeWhenMatched;
483
484 Aws::String m_mergeWhenNotMatched;
485
486 Aws::String m_mergeClause;
487
488 Aws::String m_stagingTable;
489
490 Aws::Vector<Option> m_selectedColumns;
491
492 bool m_autoPushdown{false};
493
494 Aws::Vector<Option> m_tableSchema;
495 bool m_sourceTypeHasBeenSet = false;
496 bool m_connectionHasBeenSet = false;
497 bool m_schemaHasBeenSet = false;
498 bool m_tableHasBeenSet = false;
499 bool m_databaseHasBeenSet = false;
500 bool m_tempDirHasBeenSet = false;
501 bool m_iamRoleHasBeenSet = false;
502 bool m_additionalOptionsHasBeenSet = false;
503 bool m_sampleQueryHasBeenSet = false;
504 bool m_preActionHasBeenSet = false;
505 bool m_postActionHasBeenSet = false;
506 bool m_actionHasBeenSet = false;
507 bool m_upsertHasBeenSet = false;
508 bool m_mergeActionHasBeenSet = false;
509 bool m_mergeWhenMatchedHasBeenSet = false;
510 bool m_mergeWhenNotMatchedHasBeenSet = false;
511 bool m_mergeClauseHasBeenSet = false;
512 bool m_stagingTableHasBeenSet = false;
513 bool m_selectedColumnsHasBeenSet = false;
514 bool m_autoPushdownHasBeenSet = false;
515 bool m_tableSchemaHasBeenSet = false;
516};
517
518} // namespace Model
519} // namespace Glue
520} // namespace Aws
const Aws::Vector< Option > & GetTableSchema() const
AWS_GLUE_API SnowflakeNodeData & operator=(Aws::Utils::Json::JsonView jsonValue)
SnowflakeNodeData & WithTableSchema(TableSchemaT &&value)
const Aws::String & GetDatabase() const
const Aws::String & GetTempDir() const
SnowflakeNodeData & WithIamRole(IamRoleT &&value)
SnowflakeNodeData & WithAction(ActionT &&value)
SnowflakeNodeData & WithAdditionalOptions(AdditionalOptionsT &&value)
SnowflakeNodeData & WithTable(TableT &&value)
SnowflakeNodeData & WithStagingTable(StagingTableT &&value)
const Aws::String & GetPostAction() const
SnowflakeNodeData & WithSourceType(SourceTypeT &&value)
SnowflakeNodeData & WithTempDir(TempDirT &&value)
SnowflakeNodeData & WithSampleQuery(SampleQueryT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
const Aws::String & GetMergeClause() const
void SetTableSchema(TableSchemaT &&value)
const Aws::String & GetMergeWhenNotMatched() const
void SetConnection(ConnectionT &&value)
void SetMergeAction(MergeActionT &&value)
SnowflakeNodeData & WithMergeClause(MergeClauseT &&value)
void SetStagingTable(StagingTableT &&value)
const Aws::String & GetStagingTable() const
void SetMergeClause(MergeClauseT &&value)
void SetSourceType(SourceTypeT &&value)
AWS_GLUE_API SnowflakeNodeData()=default
SnowflakeNodeData & WithMergeAction(MergeActionT &&value)
SnowflakeNodeData & WithSelectedColumns(SelectedColumnsT &&value)
SnowflakeNodeData & WithSchema(SchemaT &&value)
const Aws::String & GetTable() const
SnowflakeNodeData & WithAutoPushdown(bool value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
SnowflakeNodeData & WithMergeWhenMatched(MergeWhenMatchedT &&value)
void SetPostAction(PostActionT &&value)
void SetPreAction(PreActionT &&value)
SnowflakeNodeData & WithPreAction(PreActionT &&value)
const Aws::Vector< Option > & GetSelectedColumns() const
void SetMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
SnowflakeNodeData & AddSelectedColumns(SelectedColumnsT &&value)
const Aws::String & GetSchema() const
const Aws::String & GetPreAction() const
void SetSelectedColumns(SelectedColumnsT &&value)
SnowflakeNodeData & WithPostAction(PostActionT &&value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
SnowflakeNodeData & WithDatabase(DatabaseT &&value)
const Aws::String & GetMergeAction() const
SnowflakeNodeData & AddTableSchema(TableSchemaT &&value)
const Aws::String & GetMergeWhenMatched() const
SnowflakeNodeData & WithConnection(ConnectionT &&value)
const Aws::String & GetAction() const
SnowflakeNodeData & WithMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
void SetMergeWhenMatched(MergeWhenMatchedT &&value)
const Aws::String & GetSourceType() const
const Aws::String & GetSampleQuery() const
SnowflakeNodeData & WithUpsert(bool value)
void SetSampleQuery(SampleQueryT &&value)
AWS_GLUE_API SnowflakeNodeData(Aws::Utils::Json::JsonView jsonValue)
SnowflakeNodeData & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue