AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AmazonRedshiftNodeData.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/AmazonRedshiftAdvancedOption.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
31 public:
32 AWS_GLUE_API AmazonRedshiftNodeData() = default;
36
38
42 inline const Aws::String& GetAccessType() const { return m_accessType; }
43 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
44 template <typename AccessTypeT = Aws::String>
45 void SetAccessType(AccessTypeT&& value) {
46 m_accessTypeHasBeenSet = true;
47 m_accessType = std::forward<AccessTypeT>(value);
48 }
49 template <typename AccessTypeT = Aws::String>
50 AmazonRedshiftNodeData& WithAccessType(AccessTypeT&& value) {
51 SetAccessType(std::forward<AccessTypeT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSourceType() const { return m_sourceType; }
62 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 template <typename SourceTypeT = Aws::String>
64 void SetSourceType(SourceTypeT&& value) {
65 m_sourceTypeHasBeenSet = true;
66 m_sourceType = std::forward<SourceTypeT>(value);
67 }
68 template <typename SourceTypeT = Aws::String>
69 AmazonRedshiftNodeData& WithSourceType(SourceTypeT&& value) {
70 SetSourceType(std::forward<SourceTypeT>(value));
71 return *this;
72 }
74
76
79 inline const Option& GetConnection() const { return m_connection; }
80 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
81 template <typename ConnectionT = Option>
82 void SetConnection(ConnectionT&& value) {
83 m_connectionHasBeenSet = true;
84 m_connection = std::forward<ConnectionT>(value);
85 }
86 template <typename ConnectionT = Option>
87 AmazonRedshiftNodeData& WithConnection(ConnectionT&& value) {
88 SetConnection(std::forward<ConnectionT>(value));
89 return *this;
90 }
92
94
97 inline const Option& GetSchema() const { return m_schema; }
98 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
99 template <typename SchemaT = Option>
100 void SetSchema(SchemaT&& value) {
101 m_schemaHasBeenSet = true;
102 m_schema = std::forward<SchemaT>(value);
103 }
104 template <typename SchemaT = Option>
106 SetSchema(std::forward<SchemaT>(value));
107 return *this;
108 }
110
112
115 inline const Option& GetTable() const { return m_table; }
116 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
117 template <typename TableT = Option>
118 void SetTable(TableT&& value) {
119 m_tableHasBeenSet = true;
120 m_table = std::forward<TableT>(value);
121 }
122 template <typename TableT = Option>
124 SetTable(std::forward<TableT>(value));
125 return *this;
126 }
128
130
134 inline const Option& GetCatalogDatabase() const { return m_catalogDatabase; }
135 inline bool CatalogDatabaseHasBeenSet() const { return m_catalogDatabaseHasBeenSet; }
136 template <typename CatalogDatabaseT = Option>
137 void SetCatalogDatabase(CatalogDatabaseT&& value) {
138 m_catalogDatabaseHasBeenSet = true;
139 m_catalogDatabase = std::forward<CatalogDatabaseT>(value);
140 }
141 template <typename CatalogDatabaseT = Option>
142 AmazonRedshiftNodeData& WithCatalogDatabase(CatalogDatabaseT&& value) {
143 SetCatalogDatabase(std::forward<CatalogDatabaseT>(value));
144 return *this;
145 }
147
149
152 inline const Option& GetCatalogTable() const { return m_catalogTable; }
153 inline bool CatalogTableHasBeenSet() const { return m_catalogTableHasBeenSet; }
154 template <typename CatalogTableT = Option>
155 void SetCatalogTable(CatalogTableT&& value) {
156 m_catalogTableHasBeenSet = true;
157 m_catalogTable = std::forward<CatalogTableT>(value);
158 }
159 template <typename CatalogTableT = Option>
160 AmazonRedshiftNodeData& WithCatalogTable(CatalogTableT&& value) {
161 SetCatalogTable(std::forward<CatalogTableT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetCatalogRedshiftSchema() const { return m_catalogRedshiftSchema; }
171 inline bool CatalogRedshiftSchemaHasBeenSet() const { return m_catalogRedshiftSchemaHasBeenSet; }
172 template <typename CatalogRedshiftSchemaT = Aws::String>
173 void SetCatalogRedshiftSchema(CatalogRedshiftSchemaT&& value) {
174 m_catalogRedshiftSchemaHasBeenSet = true;
175 m_catalogRedshiftSchema = std::forward<CatalogRedshiftSchemaT>(value);
176 }
177 template <typename CatalogRedshiftSchemaT = Aws::String>
178 AmazonRedshiftNodeData& WithCatalogRedshiftSchema(CatalogRedshiftSchemaT&& value) {
179 SetCatalogRedshiftSchema(std::forward<CatalogRedshiftSchemaT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetCatalogRedshiftTable() const { return m_catalogRedshiftTable; }
189 inline bool CatalogRedshiftTableHasBeenSet() const { return m_catalogRedshiftTableHasBeenSet; }
190 template <typename CatalogRedshiftTableT = Aws::String>
191 void SetCatalogRedshiftTable(CatalogRedshiftTableT&& value) {
192 m_catalogRedshiftTableHasBeenSet = true;
193 m_catalogRedshiftTable = std::forward<CatalogRedshiftTableT>(value);
194 }
195 template <typename CatalogRedshiftTableT = Aws::String>
196 AmazonRedshiftNodeData& WithCatalogRedshiftTable(CatalogRedshiftTableT&& value) {
197 SetCatalogRedshiftTable(std::forward<CatalogRedshiftTableT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::String& GetTempDir() const { return m_tempDir; }
208 inline bool TempDirHasBeenSet() const { return m_tempDirHasBeenSet; }
209 template <typename TempDirT = Aws::String>
210 void SetTempDir(TempDirT&& value) {
211 m_tempDirHasBeenSet = true;
212 m_tempDir = std::forward<TempDirT>(value);
213 }
214 template <typename TempDirT = Aws::String>
216 SetTempDir(std::forward<TempDirT>(value));
217 return *this;
218 }
220
222
226 inline const Option& GetIamRole() const { return m_iamRole; }
227 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
228 template <typename IamRoleT = Option>
229 void SetIamRole(IamRoleT&& value) {
230 m_iamRoleHasBeenSet = true;
231 m_iamRole = std::forward<IamRoleT>(value);
232 }
233 template <typename IamRoleT = Option>
235 SetIamRole(std::forward<IamRoleT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Vector<AmazonRedshiftAdvancedOption>& GetAdvancedOptions() const { return m_advancedOptions; }
245 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
246 template <typename AdvancedOptionsT = Aws::Vector<AmazonRedshiftAdvancedOption>>
247 void SetAdvancedOptions(AdvancedOptionsT&& value) {
248 m_advancedOptionsHasBeenSet = true;
249 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
250 }
251 template <typename AdvancedOptionsT = Aws::Vector<AmazonRedshiftAdvancedOption>>
252 AmazonRedshiftNodeData& WithAdvancedOptions(AdvancedOptionsT&& value) {
253 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
254 return *this;
255 }
256 template <typename AdvancedOptionsT = AmazonRedshiftAdvancedOption>
257 AmazonRedshiftNodeData& AddAdvancedOptions(AdvancedOptionsT&& value) {
258 m_advancedOptionsHasBeenSet = true;
259 m_advancedOptions.emplace_back(std::forward<AdvancedOptionsT>(value));
260 return *this;
261 }
263
265
269 inline const Aws::String& GetSampleQuery() const { return m_sampleQuery; }
270 inline bool SampleQueryHasBeenSet() const { return m_sampleQueryHasBeenSet; }
271 template <typename SampleQueryT = Aws::String>
272 void SetSampleQuery(SampleQueryT&& value) {
273 m_sampleQueryHasBeenSet = true;
274 m_sampleQuery = std::forward<SampleQueryT>(value);
275 }
276 template <typename SampleQueryT = Aws::String>
278 SetSampleQuery(std::forward<SampleQueryT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::String& GetPreAction() const { return m_preAction; }
288 inline bool PreActionHasBeenSet() const { return m_preActionHasBeenSet; }
289 template <typename PreActionT = Aws::String>
290 void SetPreAction(PreActionT&& value) {
291 m_preActionHasBeenSet = true;
292 m_preAction = std::forward<PreActionT>(value);
293 }
294 template <typename PreActionT = Aws::String>
296 SetPreAction(std::forward<PreActionT>(value));
297 return *this;
298 }
300
302
305 inline const Aws::String& GetPostAction() const { return m_postAction; }
306 inline bool PostActionHasBeenSet() const { return m_postActionHasBeenSet; }
307 template <typename PostActionT = Aws::String>
308 void SetPostAction(PostActionT&& value) {
309 m_postActionHasBeenSet = true;
310 m_postAction = std::forward<PostActionT>(value);
311 }
312 template <typename PostActionT = Aws::String>
314 SetPostAction(std::forward<PostActionT>(value));
315 return *this;
316 }
318
320
323 inline const Aws::String& GetAction() const { return m_action; }
324 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
325 template <typename ActionT = Aws::String>
326 void SetAction(ActionT&& value) {
327 m_actionHasBeenSet = true;
328 m_action = std::forward<ActionT>(value);
329 }
330 template <typename ActionT = Aws::String>
332 SetAction(std::forward<ActionT>(value));
333 return *this;
334 }
336
338
341 inline const Aws::String& GetTablePrefix() const { return m_tablePrefix; }
342 inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
343 template <typename TablePrefixT = Aws::String>
344 void SetTablePrefix(TablePrefixT&& value) {
345 m_tablePrefixHasBeenSet = true;
346 m_tablePrefix = std::forward<TablePrefixT>(value);
347 }
348 template <typename TablePrefixT = Aws::String>
350 SetTablePrefix(std::forward<TablePrefixT>(value));
351 return *this;
352 }
354
356
359 inline bool GetUpsert() const { return m_upsert; }
360 inline bool UpsertHasBeenSet() const { return m_upsertHasBeenSet; }
361 inline void SetUpsert(bool value) {
362 m_upsertHasBeenSet = true;
363 m_upsert = value;
364 }
365 inline AmazonRedshiftNodeData& WithUpsert(bool value) {
366 SetUpsert(value);
367 return *this;
368 }
370
372
376 inline const Aws::String& GetMergeAction() const { return m_mergeAction; }
377 inline bool MergeActionHasBeenSet() const { return m_mergeActionHasBeenSet; }
378 template <typename MergeActionT = Aws::String>
379 void SetMergeAction(MergeActionT&& value) {
380 m_mergeActionHasBeenSet = true;
381 m_mergeAction = std::forward<MergeActionT>(value);
382 }
383 template <typename MergeActionT = Aws::String>
385 SetMergeAction(std::forward<MergeActionT>(value));
386 return *this;
387 }
389
391
395 inline const Aws::String& GetMergeWhenMatched() const { return m_mergeWhenMatched; }
396 inline bool MergeWhenMatchedHasBeenSet() const { return m_mergeWhenMatchedHasBeenSet; }
397 template <typename MergeWhenMatchedT = Aws::String>
398 void SetMergeWhenMatched(MergeWhenMatchedT&& value) {
399 m_mergeWhenMatchedHasBeenSet = true;
400 m_mergeWhenMatched = std::forward<MergeWhenMatchedT>(value);
401 }
402 template <typename MergeWhenMatchedT = Aws::String>
403 AmazonRedshiftNodeData& WithMergeWhenMatched(MergeWhenMatchedT&& value) {
404 SetMergeWhenMatched(std::forward<MergeWhenMatchedT>(value));
405 return *this;
406 }
408
410
414 inline const Aws::String& GetMergeWhenNotMatched() const { return m_mergeWhenNotMatched; }
415 inline bool MergeWhenNotMatchedHasBeenSet() const { return m_mergeWhenNotMatchedHasBeenSet; }
416 template <typename MergeWhenNotMatchedT = Aws::String>
417 void SetMergeWhenNotMatched(MergeWhenNotMatchedT&& value) {
418 m_mergeWhenNotMatchedHasBeenSet = true;
419 m_mergeWhenNotMatched = std::forward<MergeWhenNotMatchedT>(value);
420 }
421 template <typename MergeWhenNotMatchedT = Aws::String>
422 AmazonRedshiftNodeData& WithMergeWhenNotMatched(MergeWhenNotMatchedT&& value) {
423 SetMergeWhenNotMatched(std::forward<MergeWhenNotMatchedT>(value));
424 return *this;
425 }
427
429
432 inline const Aws::String& GetMergeClause() const { return m_mergeClause; }
433 inline bool MergeClauseHasBeenSet() const { return m_mergeClauseHasBeenSet; }
434 template <typename MergeClauseT = Aws::String>
435 void SetMergeClause(MergeClauseT&& value) {
436 m_mergeClauseHasBeenSet = true;
437 m_mergeClause = std::forward<MergeClauseT>(value);
438 }
439 template <typename MergeClauseT = Aws::String>
441 SetMergeClause(std::forward<MergeClauseT>(value));
442 return *this;
443 }
445
447
451 inline const Aws::String& GetCrawlerConnection() const { return m_crawlerConnection; }
452 inline bool CrawlerConnectionHasBeenSet() const { return m_crawlerConnectionHasBeenSet; }
453 template <typename CrawlerConnectionT = Aws::String>
454 void SetCrawlerConnection(CrawlerConnectionT&& value) {
455 m_crawlerConnectionHasBeenSet = true;
456 m_crawlerConnection = std::forward<CrawlerConnectionT>(value);
457 }
458 template <typename CrawlerConnectionT = Aws::String>
459 AmazonRedshiftNodeData& WithCrawlerConnection(CrawlerConnectionT&& value) {
460 SetCrawlerConnection(std::forward<CrawlerConnectionT>(value));
461 return *this;
462 }
464
466
469 inline const Aws::Vector<Option>& GetTableSchema() const { return m_tableSchema; }
470 inline bool TableSchemaHasBeenSet() const { return m_tableSchemaHasBeenSet; }
471 template <typename TableSchemaT = Aws::Vector<Option>>
472 void SetTableSchema(TableSchemaT&& value) {
473 m_tableSchemaHasBeenSet = true;
474 m_tableSchema = std::forward<TableSchemaT>(value);
475 }
476 template <typename TableSchemaT = Aws::Vector<Option>>
478 SetTableSchema(std::forward<TableSchemaT>(value));
479 return *this;
480 }
481 template <typename TableSchemaT = Option>
482 AmazonRedshiftNodeData& AddTableSchema(TableSchemaT&& value) {
483 m_tableSchemaHasBeenSet = true;
484 m_tableSchema.emplace_back(std::forward<TableSchemaT>(value));
485 return *this;
486 }
488
490
494 inline const Aws::String& GetStagingTable() const { return m_stagingTable; }
495 inline bool StagingTableHasBeenSet() const { return m_stagingTableHasBeenSet; }
496 template <typename StagingTableT = Aws::String>
497 void SetStagingTable(StagingTableT&& value) {
498 m_stagingTableHasBeenSet = true;
499 m_stagingTable = std::forward<StagingTableT>(value);
500 }
501 template <typename StagingTableT = Aws::String>
502 AmazonRedshiftNodeData& WithStagingTable(StagingTableT&& value) {
503 SetStagingTable(std::forward<StagingTableT>(value));
504 return *this;
505 }
507
509
513 inline const Aws::Vector<Option>& GetSelectedColumns() const { return m_selectedColumns; }
514 inline bool SelectedColumnsHasBeenSet() const { return m_selectedColumnsHasBeenSet; }
515 template <typename SelectedColumnsT = Aws::Vector<Option>>
516 void SetSelectedColumns(SelectedColumnsT&& value) {
517 m_selectedColumnsHasBeenSet = true;
518 m_selectedColumns = std::forward<SelectedColumnsT>(value);
519 }
520 template <typename SelectedColumnsT = Aws::Vector<Option>>
521 AmazonRedshiftNodeData& WithSelectedColumns(SelectedColumnsT&& value) {
522 SetSelectedColumns(std::forward<SelectedColumnsT>(value));
523 return *this;
524 }
525 template <typename SelectedColumnsT = Option>
526 AmazonRedshiftNodeData& AddSelectedColumns(SelectedColumnsT&& value) {
527 m_selectedColumnsHasBeenSet = true;
528 m_selectedColumns.emplace_back(std::forward<SelectedColumnsT>(value));
529 return *this;
530 }
532 private:
533 Aws::String m_accessType;
534
535 Aws::String m_sourceType;
536
537 Option m_connection;
538
539 Option m_schema;
540
541 Option m_table;
542
543 Option m_catalogDatabase;
544
545 Option m_catalogTable;
546
547 Aws::String m_catalogRedshiftSchema;
548
549 Aws::String m_catalogRedshiftTable;
550
551 Aws::String m_tempDir;
552
553 Option m_iamRole;
554
556
557 Aws::String m_sampleQuery;
558
559 Aws::String m_preAction;
560
561 Aws::String m_postAction;
562
563 Aws::String m_action;
564
565 Aws::String m_tablePrefix;
566
567 bool m_upsert{false};
568
569 Aws::String m_mergeAction;
570
571 Aws::String m_mergeWhenMatched;
572
573 Aws::String m_mergeWhenNotMatched;
574
575 Aws::String m_mergeClause;
576
577 Aws::String m_crawlerConnection;
578
579 Aws::Vector<Option> m_tableSchema;
580
581 Aws::String m_stagingTable;
582
583 Aws::Vector<Option> m_selectedColumns;
584 bool m_accessTypeHasBeenSet = false;
585 bool m_sourceTypeHasBeenSet = false;
586 bool m_connectionHasBeenSet = false;
587 bool m_schemaHasBeenSet = false;
588 bool m_tableHasBeenSet = false;
589 bool m_catalogDatabaseHasBeenSet = false;
590 bool m_catalogTableHasBeenSet = false;
591 bool m_catalogRedshiftSchemaHasBeenSet = false;
592 bool m_catalogRedshiftTableHasBeenSet = false;
593 bool m_tempDirHasBeenSet = false;
594 bool m_iamRoleHasBeenSet = false;
595 bool m_advancedOptionsHasBeenSet = false;
596 bool m_sampleQueryHasBeenSet = false;
597 bool m_preActionHasBeenSet = false;
598 bool m_postActionHasBeenSet = false;
599 bool m_actionHasBeenSet = false;
600 bool m_tablePrefixHasBeenSet = false;
601 bool m_upsertHasBeenSet = false;
602 bool m_mergeActionHasBeenSet = false;
603 bool m_mergeWhenMatchedHasBeenSet = false;
604 bool m_mergeWhenNotMatchedHasBeenSet = false;
605 bool m_mergeClauseHasBeenSet = false;
606 bool m_crawlerConnectionHasBeenSet = false;
607 bool m_tableSchemaHasBeenSet = false;
608 bool m_stagingTableHasBeenSet = false;
609 bool m_selectedColumnsHasBeenSet = false;
610};
611
612} // namespace Model
613} // namespace Glue
614} // namespace Aws
AmazonRedshiftNodeData & WithTempDir(TempDirT &&value)
void SetCatalogRedshiftSchema(CatalogRedshiftSchemaT &&value)
AmazonRedshiftNodeData & WithCrawlerConnection(CrawlerConnectionT &&value)
AWS_GLUE_API AmazonRedshiftNodeData(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogDatabase(CatalogDatabaseT &&value)
AmazonRedshiftNodeData & WithCatalogDatabase(CatalogDatabaseT &&value)
AmazonRedshiftNodeData & WithAction(ActionT &&value)
const Aws::Vector< AmazonRedshiftAdvancedOption > & GetAdvancedOptions() const
AmazonRedshiftNodeData & WithAdvancedOptions(AdvancedOptionsT &&value)
AmazonRedshiftNodeData & WithCatalogRedshiftTable(CatalogRedshiftTableT &&value)
AmazonRedshiftNodeData & WithAccessType(AccessTypeT &&value)
AWS_GLUE_API AmazonRedshiftNodeData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCatalogRedshiftTable() const
AmazonRedshiftNodeData & WithMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
AWS_GLUE_API AmazonRedshiftNodeData()=default
AmazonRedshiftNodeData & WithCatalogRedshiftSchema(CatalogRedshiftSchemaT &&value)
void SetMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
const Aws::Vector< Option > & GetSelectedColumns() const
void SetSelectedColumns(SelectedColumnsT &&value)
AmazonRedshiftNodeData & WithPostAction(PostActionT &&value)
AmazonRedshiftNodeData & AddTableSchema(TableSchemaT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AmazonRedshiftNodeData & WithStagingTable(StagingTableT &&value)
const Aws::String & GetCatalogRedshiftSchema() const
AmazonRedshiftNodeData & WithSampleQuery(SampleQueryT &&value)
AmazonRedshiftNodeData & WithSelectedColumns(SelectedColumnsT &&value)
AmazonRedshiftNodeData & WithCatalogTable(CatalogTableT &&value)
AmazonRedshiftNodeData & WithSchema(SchemaT &&value)
void SetCrawlerConnection(CrawlerConnectionT &&value)
void SetCatalogRedshiftTable(CatalogRedshiftTableT &&value)
AmazonRedshiftNodeData & WithSourceType(SourceTypeT &&value)
AmazonRedshiftNodeData & WithMergeClause(MergeClauseT &&value)
AmazonRedshiftNodeData & WithTablePrefix(TablePrefixT &&value)
void SetMergeWhenMatched(MergeWhenMatchedT &&value)
AmazonRedshiftNodeData & AddAdvancedOptions(AdvancedOptionsT &&value)
AmazonRedshiftNodeData & AddSelectedColumns(SelectedColumnsT &&value)
AmazonRedshiftNodeData & WithPreAction(PreActionT &&value)
AmazonRedshiftNodeData & WithMergeWhenMatched(MergeWhenMatchedT &&value)
AmazonRedshiftNodeData & WithTableSchema(TableSchemaT &&value)
AmazonRedshiftNodeData & WithConnection(ConnectionT &&value)
AmazonRedshiftNodeData & WithIamRole(IamRoleT &&value)
AmazonRedshiftNodeData & WithTable(TableT &&value)
const Aws::Vector< Option > & GetTableSchema() const
AmazonRedshiftNodeData & WithMergeAction(MergeActionT &&value)
void SetAdvancedOptions(AdvancedOptionsT &&value)
AmazonRedshiftNodeData & WithUpsert(bool 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