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>
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>
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>
75 template<
typename ConnectionT = Option>
76 void SetConnection(ConnectionT&& value) { m_connectionHasBeenSet =
true; m_connection = std::forward<ConnectionT>(value); }
77 template<
typename ConnectionT = Option>
87 template<
typename SchemaT = Option>
88 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet =
true; m_schema = std::forward<SchemaT>(value); }
89 template<
typename SchemaT = Option>
99 template<
typename TableT = Option>
100 void SetTable(TableT&& value) { m_tableHasBeenSet =
true; m_table = std::forward<TableT>(value); }
101 template<
typename TableT = Option>
112 template<
typename CatalogDatabaseT = Option>
113 void SetCatalogDatabase(CatalogDatabaseT&& value) { m_catalogDatabaseHasBeenSet =
true; m_catalogDatabase = std::forward<CatalogDatabaseT>(value); }
114 template<
typename CatalogDatabaseT = Option>
124 template<
typename CatalogTableT = Option>
125 void SetCatalogTable(CatalogTableT&& value) { m_catalogTableHasBeenSet =
true; m_catalogTable = std::forward<CatalogTableT>(value); }
126 template<
typename CatalogTableT = Option>
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>
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>
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>
174 template<
typename IamRoleT = Option>
175 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet =
true; m_iamRole = std::forward<IamRoleT>(value); }
176 template<
typename IamRoleT = Option>
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>>
190 template<
typename AdvancedOptionsT = AmazonRedshiftAdvancedOption>
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>
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>
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>
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>
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>
261 inline void SetUpsert(
bool value) { m_upsertHasBeenSet =
true; m_upsert = value; }
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>
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>
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>
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>
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>
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>>
339 template<
typename TableSchemaT = Option>
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>
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>>
367 template<
typename SelectedColumnsT = Option>
373 bool m_accessTypeHasBeenSet =
false;
376 bool m_sourceTypeHasBeenSet =
false;
379 bool m_connectionHasBeenSet =
false;
382 bool m_schemaHasBeenSet =
false;
385 bool m_tableHasBeenSet =
false;
388 bool m_catalogDatabaseHasBeenSet =
false;
391 bool m_catalogTableHasBeenSet =
false;
394 bool m_catalogRedshiftSchemaHasBeenSet =
false;
397 bool m_catalogRedshiftTableHasBeenSet =
false;
400 bool m_tempDirHasBeenSet =
false;
403 bool m_iamRoleHasBeenSet =
false;
406 bool m_advancedOptionsHasBeenSet =
false;
409 bool m_sampleQueryHasBeenSet =
false;
412 bool m_preActionHasBeenSet =
false;
415 bool m_postActionHasBeenSet =
false;
418 bool m_actionHasBeenSet =
false;
421 bool m_tablePrefixHasBeenSet =
false;
423 bool m_upsert{
false};
424 bool m_upsertHasBeenSet =
false;
427 bool m_mergeActionHasBeenSet =
false;
430 bool m_mergeWhenMatchedHasBeenSet =
false;
433 bool m_mergeWhenNotMatchedHasBeenSet =
false;
436 bool m_mergeClauseHasBeenSet =
false;
439 bool m_crawlerConnectionHasBeenSet =
false;
442 bool m_tableSchemaHasBeenSet =
false;
445 bool m_stagingTableHasBeenSet =
false;
448 bool m_selectedColumnsHasBeenSet =
false;
void SetAccessType(AccessTypeT &&value)
AmazonRedshiftNodeData & WithTempDir(TempDirT &&value)
void SetCatalogRedshiftSchema(CatalogRedshiftSchemaT &&value)
bool AccessTypeHasBeenSet() const
bool IamRoleHasBeenSet() const
void SetMergeAction(MergeActionT &&value)
const Aws::String & GetMergeWhenNotMatched() const
AmazonRedshiftNodeData & WithCrawlerConnection(CrawlerConnectionT &&value)
bool AdvancedOptionsHasBeenSet() const
bool TableHasBeenSet() const
void SetSampleQuery(SampleQueryT &&value)
const Aws::String & GetMergeWhenMatched() const
void SetUpsert(bool value)
bool MergeWhenNotMatchedHasBeenSet() const
bool CatalogRedshiftTableHasBeenSet() const
void SetTableSchema(TableSchemaT &&value)
void SetMergeClause(MergeClauseT &&value)
AWS_GLUE_API AmazonRedshiftNodeData(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogDatabase(CatalogDatabaseT &&value)
const Aws::String & GetTempDir() const
AmazonRedshiftNodeData & WithCatalogDatabase(CatalogDatabaseT &&value)
bool CatalogRedshiftSchemaHasBeenSet() const
bool SelectedColumnsHasBeenSet() const
AmazonRedshiftNodeData & WithAction(ActionT &&value)
bool UpsertHasBeenSet() const
bool MergeClauseHasBeenSet() const
const Option & GetCatalogDatabase() const
const Aws::Vector< AmazonRedshiftAdvancedOption > & GetAdvancedOptions() const
bool ConnectionHasBeenSet() const
AmazonRedshiftNodeData & WithAdvancedOptions(AdvancedOptionsT &&value)
void SetPreAction(PreActionT &&value)
AmazonRedshiftNodeData & WithCatalogRedshiftTable(CatalogRedshiftTableT &&value)
AmazonRedshiftNodeData & WithAccessType(AccessTypeT &&value)
void SetStagingTable(StagingTableT &&value)
const Aws::String & GetPreAction() const
const Option & GetSchema() const
AWS_GLUE_API AmazonRedshiftNodeData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCatalogRedshiftTable() const
bool TablePrefixHasBeenSet() const
const Aws::String & GetStagingTable() const
AmazonRedshiftNodeData & WithMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
AWS_GLUE_API AmazonRedshiftNodeData()=default
AmazonRedshiftNodeData & WithCatalogRedshiftSchema(CatalogRedshiftSchemaT &&value)
void SetSourceType(SourceTypeT &&value)
bool PostActionHasBeenSet() const
void SetMergeWhenNotMatched(MergeWhenNotMatchedT &&value)
const Aws::String & GetSampleQuery() const
const Aws::Vector< Option > & GetSelectedColumns() const
void SetSelectedColumns(SelectedColumnsT &&value)
AmazonRedshiftNodeData & WithPostAction(PostActionT &&value)
AmazonRedshiftNodeData & AddTableSchema(TableSchemaT &&value)
void SetTable(TableT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCrawlerConnection() const
AmazonRedshiftNodeData & WithStagingTable(StagingTableT &&value)
const Aws::String & GetCatalogRedshiftSchema() const
AmazonRedshiftNodeData & WithSampleQuery(SampleQueryT &&value)
AmazonRedshiftNodeData & WithSelectedColumns(SelectedColumnsT &&value)
bool SchemaHasBeenSet() const
AmazonRedshiftNodeData & WithCatalogTable(CatalogTableT &&value)
AmazonRedshiftNodeData & WithSchema(SchemaT &&value)
const Aws::String & GetPostAction() const
void SetCrawlerConnection(CrawlerConnectionT &&value)
void SetCatalogRedshiftTable(CatalogRedshiftTableT &&value)
bool ActionHasBeenSet() const
AmazonRedshiftNodeData & WithSourceType(SourceTypeT &&value)
const Option & GetTable() const
const Option & GetCatalogTable() const
bool TempDirHasBeenSet() const
bool StagingTableHasBeenSet() const
void SetAction(ActionT &&value)
void SetTablePrefix(TablePrefixT &&value)
AmazonRedshiftNodeData & WithMergeClause(MergeClauseT &&value)
void SetPostAction(PostActionT &&value)
AmazonRedshiftNodeData & WithTablePrefix(TablePrefixT &&value)
bool CatalogDatabaseHasBeenSet() const
const Option & GetIamRole() const
bool CrawlerConnectionHasBeenSet() const
void SetMergeWhenMatched(MergeWhenMatchedT &&value)
void SetConnection(ConnectionT &&value)
AmazonRedshiftNodeData & AddAdvancedOptions(AdvancedOptionsT &&value)
AmazonRedshiftNodeData & AddSelectedColumns(SelectedColumnsT &&value)
bool SampleQueryHasBeenSet() const
AmazonRedshiftNodeData & WithPreAction(PreActionT &&value)
const Aws::String & GetAction() const
bool SourceTypeHasBeenSet() const
bool MergeWhenMatchedHasBeenSet() const
const Option & GetConnection() const
AmazonRedshiftNodeData & WithMergeWhenMatched(MergeWhenMatchedT &&value)
bool MergeActionHasBeenSet() const
AmazonRedshiftNodeData & WithTableSchema(TableSchemaT &&value)
const Aws::String & GetTablePrefix() const
bool CatalogTableHasBeenSet() const
const Aws::String & GetSourceType() const
AmazonRedshiftNodeData & WithConnection(ConnectionT &&value)
void SetSchema(SchemaT &&value)
void SetCatalogTable(CatalogTableT &&value)
AmazonRedshiftNodeData & WithIamRole(IamRoleT &&value)
bool TableSchemaHasBeenSet() const
bool PreActionHasBeenSet() const
AmazonRedshiftNodeData & WithTable(TableT &&value)
const Aws::String & GetAccessType() const
const Aws::String & GetMergeClause() const
const Aws::String & GetMergeAction() const
const Aws::Vector< Option > & GetTableSchema() const
AmazonRedshiftNodeData & WithMergeAction(MergeActionT &&value)
void SetAdvancedOptions(AdvancedOptionsT &&value)
void SetTempDir(TempDirT &&value)
void SetIamRole(IamRoleT &&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