AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AmazonRedshiftNodeData.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/Option.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/AmazonRedshiftAdvancedOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GLUE_API AmazonRedshiftNodeData() = default;
41
42
44
48 inline const Aws::String& GetAccessType() const { return m_accessType; }
49 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
50 template<typename AccessTypeT = Aws::String>
51 void SetAccessType(AccessTypeT&& value) { m_accessTypeHasBeenSet = true; m_accessType = std::forward<AccessTypeT>(value); }
52 template<typename AccessTypeT = Aws::String>
53 AmazonRedshiftNodeData& WithAccessType(AccessTypeT&& value) { SetAccessType(std::forward<AccessTypeT>(value)); return *this;}
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) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
65 template<typename SourceTypeT = Aws::String>
66 AmazonRedshiftNodeData& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
68
70
73 inline const Option& GetConnection() const { return m_connection; }
74 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
75 template<typename ConnectionT = Option>
76 void SetConnection(ConnectionT&& value) { m_connectionHasBeenSet = true; m_connection = std::forward<ConnectionT>(value); }
77 template<typename ConnectionT = Option>
78 AmazonRedshiftNodeData& WithConnection(ConnectionT&& value) { SetConnection(std::forward<ConnectionT>(value)); return *this;}
80
82
85 inline const Option& GetSchema() const { return m_schema; }
86 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
87 template<typename SchemaT = Option>
88 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
89 template<typename SchemaT = Option>
90 AmazonRedshiftNodeData& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
92
94
97 inline const Option& GetTable() const { return m_table; }
98 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
99 template<typename TableT = Option>
100 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
101 template<typename TableT = Option>
102 AmazonRedshiftNodeData& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
104
106
110 inline const Option& GetCatalogDatabase() const { return m_catalogDatabase; }
111 inline bool CatalogDatabaseHasBeenSet() const { return m_catalogDatabaseHasBeenSet; }
112 template<typename CatalogDatabaseT = Option>
113 void SetCatalogDatabase(CatalogDatabaseT&& value) { m_catalogDatabaseHasBeenSet = true; m_catalogDatabase = std::forward<CatalogDatabaseT>(value); }
114 template<typename CatalogDatabaseT = Option>
115 AmazonRedshiftNodeData& WithCatalogDatabase(CatalogDatabaseT&& value) { SetCatalogDatabase(std::forward<CatalogDatabaseT>(value)); return *this;}
117
119
122 inline const Option& GetCatalogTable() const { return m_catalogTable; }
123 inline bool CatalogTableHasBeenSet() const { return m_catalogTableHasBeenSet; }
124 template<typename CatalogTableT = Option>
125 void SetCatalogTable(CatalogTableT&& value) { m_catalogTableHasBeenSet = true; m_catalogTable = std::forward<CatalogTableT>(value); }
126 template<typename CatalogTableT = Option>
127 AmazonRedshiftNodeData& WithCatalogTable(CatalogTableT&& value) { SetCatalogTable(std::forward<CatalogTableT>(value)); return *this;}
129
131
134 inline const Aws::String& GetCatalogRedshiftSchema() const { return m_catalogRedshiftSchema; }
135 inline bool CatalogRedshiftSchemaHasBeenSet() const { return m_catalogRedshiftSchemaHasBeenSet; }
136 template<typename CatalogRedshiftSchemaT = Aws::String>
137 void SetCatalogRedshiftSchema(CatalogRedshiftSchemaT&& value) { m_catalogRedshiftSchemaHasBeenSet = true; m_catalogRedshiftSchema = std::forward<CatalogRedshiftSchemaT>(value); }
138 template<typename CatalogRedshiftSchemaT = Aws::String>
139 AmazonRedshiftNodeData& WithCatalogRedshiftSchema(CatalogRedshiftSchemaT&& value) { SetCatalogRedshiftSchema(std::forward<CatalogRedshiftSchemaT>(value)); return *this;}
141
143
146 inline const Aws::String& GetCatalogRedshiftTable() const { return m_catalogRedshiftTable; }
147 inline bool CatalogRedshiftTableHasBeenSet() const { return m_catalogRedshiftTableHasBeenSet; }
148 template<typename CatalogRedshiftTableT = Aws::String>
149 void SetCatalogRedshiftTable(CatalogRedshiftTableT&& value) { m_catalogRedshiftTableHasBeenSet = true; m_catalogRedshiftTable = std::forward<CatalogRedshiftTableT>(value); }
150 template<typename CatalogRedshiftTableT = Aws::String>
151 AmazonRedshiftNodeData& WithCatalogRedshiftTable(CatalogRedshiftTableT&& value) { SetCatalogRedshiftTable(std::forward<CatalogRedshiftTableT>(value)); return *this;}
153
155
159 inline const Aws::String& GetTempDir() const { return m_tempDir; }
160 inline bool TempDirHasBeenSet() const { return m_tempDirHasBeenSet; }
161 template<typename TempDirT = Aws::String>
162 void SetTempDir(TempDirT&& value) { m_tempDirHasBeenSet = true; m_tempDir = std::forward<TempDirT>(value); }
163 template<typename TempDirT = Aws::String>
164 AmazonRedshiftNodeData& WithTempDir(TempDirT&& value) { SetTempDir(std::forward<TempDirT>(value)); return *this;}
166
168
172 inline const Option& GetIamRole() const { return m_iamRole; }
173 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
174 template<typename IamRoleT = Option>
175 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
176 template<typename IamRoleT = Option>
177 AmazonRedshiftNodeData& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
179
181
184 inline const Aws::Vector<AmazonRedshiftAdvancedOption>& GetAdvancedOptions() const { return m_advancedOptions; }
185 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
186 template<typename AdvancedOptionsT = Aws::Vector<AmazonRedshiftAdvancedOption>>
187 void SetAdvancedOptions(AdvancedOptionsT&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::forward<AdvancedOptionsT>(value); }
188 template<typename AdvancedOptionsT = Aws::Vector<AmazonRedshiftAdvancedOption>>
189 AmazonRedshiftNodeData& WithAdvancedOptions(AdvancedOptionsT&& value) { SetAdvancedOptions(std::forward<AdvancedOptionsT>(value)); return *this;}
190 template<typename AdvancedOptionsT = AmazonRedshiftAdvancedOption>
191 AmazonRedshiftNodeData& AddAdvancedOptions(AdvancedOptionsT&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace_back(std::forward<AdvancedOptionsT>(value)); return *this; }
193
195
199 inline const Aws::String& GetSampleQuery() const { return m_sampleQuery; }
200 inline bool SampleQueryHasBeenSet() const { return m_sampleQueryHasBeenSet; }
201 template<typename SampleQueryT = Aws::String>
202 void SetSampleQuery(SampleQueryT&& value) { m_sampleQueryHasBeenSet = true; m_sampleQuery = std::forward<SampleQueryT>(value); }
203 template<typename SampleQueryT = Aws::String>
204 AmazonRedshiftNodeData& WithSampleQuery(SampleQueryT&& value) { SetSampleQuery(std::forward<SampleQueryT>(value)); return *this;}
206
208
211 inline const Aws::String& GetPreAction() const { return m_preAction; }
212 inline bool PreActionHasBeenSet() const { return m_preActionHasBeenSet; }
213 template<typename PreActionT = Aws::String>
214 void SetPreAction(PreActionT&& value) { m_preActionHasBeenSet = true; m_preAction = std::forward<PreActionT>(value); }
215 template<typename PreActionT = Aws::String>
216 AmazonRedshiftNodeData& WithPreAction(PreActionT&& value) { SetPreAction(std::forward<PreActionT>(value)); return *this;}
218
220
223 inline const Aws::String& GetPostAction() const { return m_postAction; }
224 inline bool PostActionHasBeenSet() const { return m_postActionHasBeenSet; }
225 template<typename PostActionT = Aws::String>
226 void SetPostAction(PostActionT&& value) { m_postActionHasBeenSet = true; m_postAction = std::forward<PostActionT>(value); }
227 template<typename PostActionT = Aws::String>
228 AmazonRedshiftNodeData& WithPostAction(PostActionT&& value) { SetPostAction(std::forward<PostActionT>(value)); return *this;}
230
232
235 inline const Aws::String& GetAction() const { return m_action; }
236 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
237 template<typename ActionT = Aws::String>
238 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
239 template<typename ActionT = Aws::String>
240 AmazonRedshiftNodeData& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
242
244
247 inline const Aws::String& GetTablePrefix() const { return m_tablePrefix; }
248 inline bool TablePrefixHasBeenSet() const { return m_tablePrefixHasBeenSet; }
249 template<typename TablePrefixT = Aws::String>
250 void SetTablePrefix(TablePrefixT&& value) { m_tablePrefixHasBeenSet = true; m_tablePrefix = std::forward<TablePrefixT>(value); }
251 template<typename TablePrefixT = Aws::String>
252 AmazonRedshiftNodeData& WithTablePrefix(TablePrefixT&& value) { SetTablePrefix(std::forward<TablePrefixT>(value)); return *this;}
254
256
259 inline bool GetUpsert() const { return m_upsert; }
260 inline bool UpsertHasBeenSet() const { return m_upsertHasBeenSet; }
261 inline void SetUpsert(bool value) { m_upsertHasBeenSet = true; m_upsert = value; }
262 inline AmazonRedshiftNodeData& WithUpsert(bool value) { SetUpsert(value); return *this;}
264
266
270 inline const Aws::String& GetMergeAction() const { return m_mergeAction; }
271 inline bool MergeActionHasBeenSet() const { return m_mergeActionHasBeenSet; }
272 template<typename MergeActionT = Aws::String>
273 void SetMergeAction(MergeActionT&& value) { m_mergeActionHasBeenSet = true; m_mergeAction = std::forward<MergeActionT>(value); }
274 template<typename MergeActionT = Aws::String>
275 AmazonRedshiftNodeData& WithMergeAction(MergeActionT&& value) { SetMergeAction(std::forward<MergeActionT>(value)); return *this;}
277
279
283 inline const Aws::String& GetMergeWhenMatched() const { return m_mergeWhenMatched; }
284 inline bool MergeWhenMatchedHasBeenSet() const { return m_mergeWhenMatchedHasBeenSet; }
285 template<typename MergeWhenMatchedT = Aws::String>
286 void SetMergeWhenMatched(MergeWhenMatchedT&& value) { m_mergeWhenMatchedHasBeenSet = true; m_mergeWhenMatched = std::forward<MergeWhenMatchedT>(value); }
287 template<typename MergeWhenMatchedT = Aws::String>
288 AmazonRedshiftNodeData& WithMergeWhenMatched(MergeWhenMatchedT&& value) { SetMergeWhenMatched(std::forward<MergeWhenMatchedT>(value)); return *this;}
290
292
296 inline const Aws::String& GetMergeWhenNotMatched() const { return m_mergeWhenNotMatched; }
297 inline bool MergeWhenNotMatchedHasBeenSet() const { return m_mergeWhenNotMatchedHasBeenSet; }
298 template<typename MergeWhenNotMatchedT = Aws::String>
299 void SetMergeWhenNotMatched(MergeWhenNotMatchedT&& value) { m_mergeWhenNotMatchedHasBeenSet = true; m_mergeWhenNotMatched = std::forward<MergeWhenNotMatchedT>(value); }
300 template<typename MergeWhenNotMatchedT = Aws::String>
301 AmazonRedshiftNodeData& WithMergeWhenNotMatched(MergeWhenNotMatchedT&& value) { SetMergeWhenNotMatched(std::forward<MergeWhenNotMatchedT>(value)); return *this;}
303
305
308 inline const Aws::String& GetMergeClause() const { return m_mergeClause; }
309 inline bool MergeClauseHasBeenSet() const { return m_mergeClauseHasBeenSet; }
310 template<typename MergeClauseT = Aws::String>
311 void SetMergeClause(MergeClauseT&& value) { m_mergeClauseHasBeenSet = true; m_mergeClause = std::forward<MergeClauseT>(value); }
312 template<typename MergeClauseT = Aws::String>
313 AmazonRedshiftNodeData& WithMergeClause(MergeClauseT&& value) { SetMergeClause(std::forward<MergeClauseT>(value)); return *this;}
315
317
321 inline const Aws::String& GetCrawlerConnection() const { return m_crawlerConnection; }
322 inline bool CrawlerConnectionHasBeenSet() const { return m_crawlerConnectionHasBeenSet; }
323 template<typename CrawlerConnectionT = Aws::String>
324 void SetCrawlerConnection(CrawlerConnectionT&& value) { m_crawlerConnectionHasBeenSet = true; m_crawlerConnection = std::forward<CrawlerConnectionT>(value); }
325 template<typename CrawlerConnectionT = Aws::String>
326 AmazonRedshiftNodeData& WithCrawlerConnection(CrawlerConnectionT&& value) { SetCrawlerConnection(std::forward<CrawlerConnectionT>(value)); return *this;}
328
330
333 inline const Aws::Vector<Option>& GetTableSchema() const { return m_tableSchema; }
334 inline bool TableSchemaHasBeenSet() const { return m_tableSchemaHasBeenSet; }
335 template<typename TableSchemaT = Aws::Vector<Option>>
336 void SetTableSchema(TableSchemaT&& value) { m_tableSchemaHasBeenSet = true; m_tableSchema = std::forward<TableSchemaT>(value); }
337 template<typename TableSchemaT = Aws::Vector<Option>>
338 AmazonRedshiftNodeData& WithTableSchema(TableSchemaT&& value) { SetTableSchema(std::forward<TableSchemaT>(value)); return *this;}
339 template<typename TableSchemaT = Option>
340 AmazonRedshiftNodeData& AddTableSchema(TableSchemaT&& value) { m_tableSchemaHasBeenSet = true; m_tableSchema.emplace_back(std::forward<TableSchemaT>(value)); return *this; }
342
344
348 inline const Aws::String& GetStagingTable() const { return m_stagingTable; }
349 inline bool StagingTableHasBeenSet() const { return m_stagingTableHasBeenSet; }
350 template<typename StagingTableT = Aws::String>
351 void SetStagingTable(StagingTableT&& value) { m_stagingTableHasBeenSet = true; m_stagingTable = std::forward<StagingTableT>(value); }
352 template<typename StagingTableT = Aws::String>
353 AmazonRedshiftNodeData& WithStagingTable(StagingTableT&& value) { SetStagingTable(std::forward<StagingTableT>(value)); return *this;}
355
357
361 inline const Aws::Vector<Option>& GetSelectedColumns() const { return m_selectedColumns; }
362 inline bool SelectedColumnsHasBeenSet() const { return m_selectedColumnsHasBeenSet; }
363 template<typename SelectedColumnsT = Aws::Vector<Option>>
364 void SetSelectedColumns(SelectedColumnsT&& value) { m_selectedColumnsHasBeenSet = true; m_selectedColumns = std::forward<SelectedColumnsT>(value); }
365 template<typename SelectedColumnsT = Aws::Vector<Option>>
366 AmazonRedshiftNodeData& WithSelectedColumns(SelectedColumnsT&& value) { SetSelectedColumns(std::forward<SelectedColumnsT>(value)); return *this;}
367 template<typename SelectedColumnsT = Option>
368 AmazonRedshiftNodeData& AddSelectedColumns(SelectedColumnsT&& value) { m_selectedColumnsHasBeenSet = true; m_selectedColumns.emplace_back(std::forward<SelectedColumnsT>(value)); return *this; }
370 private:
371
372 Aws::String m_accessType;
373 bool m_accessTypeHasBeenSet = false;
374
375 Aws::String m_sourceType;
376 bool m_sourceTypeHasBeenSet = false;
377
378 Option m_connection;
379 bool m_connectionHasBeenSet = false;
380
381 Option m_schema;
382 bool m_schemaHasBeenSet = false;
383
384 Option m_table;
385 bool m_tableHasBeenSet = false;
386
387 Option m_catalogDatabase;
388 bool m_catalogDatabaseHasBeenSet = false;
389
390 Option m_catalogTable;
391 bool m_catalogTableHasBeenSet = false;
392
393 Aws::String m_catalogRedshiftSchema;
394 bool m_catalogRedshiftSchemaHasBeenSet = false;
395
396 Aws::String m_catalogRedshiftTable;
397 bool m_catalogRedshiftTableHasBeenSet = false;
398
399 Aws::String m_tempDir;
400 bool m_tempDirHasBeenSet = false;
401
402 Option m_iamRole;
403 bool m_iamRoleHasBeenSet = false;
404
406 bool m_advancedOptionsHasBeenSet = false;
407
408 Aws::String m_sampleQuery;
409 bool m_sampleQueryHasBeenSet = false;
410
411 Aws::String m_preAction;
412 bool m_preActionHasBeenSet = false;
413
414 Aws::String m_postAction;
415 bool m_postActionHasBeenSet = false;
416
417 Aws::String m_action;
418 bool m_actionHasBeenSet = false;
419
420 Aws::String m_tablePrefix;
421 bool m_tablePrefixHasBeenSet = false;
422
423 bool m_upsert{false};
424 bool m_upsertHasBeenSet = false;
425
426 Aws::String m_mergeAction;
427 bool m_mergeActionHasBeenSet = false;
428
429 Aws::String m_mergeWhenMatched;
430 bool m_mergeWhenMatchedHasBeenSet = false;
431
432 Aws::String m_mergeWhenNotMatched;
433 bool m_mergeWhenNotMatchedHasBeenSet = false;
434
435 Aws::String m_mergeClause;
436 bool m_mergeClauseHasBeenSet = false;
437
438 Aws::String m_crawlerConnection;
439 bool m_crawlerConnectionHasBeenSet = false;
440
441 Aws::Vector<Option> m_tableSchema;
442 bool m_tableSchemaHasBeenSet = false;
443
444 Aws::String m_stagingTable;
445 bool m_stagingTableHasBeenSet = false;
446
447 Aws::Vector<Option> m_selectedColumns;
448 bool m_selectedColumnsHasBeenSet = false;
449 };
450
451} // namespace Model
452} // namespace Glue
453} // 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