Interface AmazonRedshiftNodeData.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AmazonRedshiftNodeData.Builder,
,AmazonRedshiftNodeData> SdkBuilder<AmazonRedshiftNodeData.Builder,
,AmazonRedshiftNodeData> SdkPojo
- Enclosing class:
AmazonRedshiftNodeData
-
Method Summary
Modifier and TypeMethodDescriptionaccessType
(String accessType) The access type for the Redshift connection.Specifies how writing to a Redshift cluser will occur.advancedOptions
(Collection<AmazonRedshiftAdvancedOption> advancedOptions) Optional values when connecting to the Redshift cluster.advancedOptions
(Consumer<AmazonRedshiftAdvancedOption.Builder>... advancedOptions) Optional values when connecting to the Redshift cluster.advancedOptions
(AmazonRedshiftAdvancedOption... advancedOptions) Optional values when connecting to the Redshift cluster.default AmazonRedshiftNodeData.Builder
catalogDatabase
(Consumer<Option.Builder> catalogDatabase) The name of the Glue Data Catalog database when working with a data catalog.catalogDatabase
(Option catalogDatabase) The name of the Glue Data Catalog database when working with a data catalog.catalogRedshiftSchema
(String catalogRedshiftSchema) The Redshift schema name when working with a data catalog.catalogRedshiftTable
(String catalogRedshiftTable) The database table to read from.default AmazonRedshiftNodeData.Builder
catalogTable
(Consumer<Option.Builder> catalogTable) The Glue Data Catalog table name when working with a data catalog.catalogTable
(Option catalogTable) The Glue Data Catalog table name when working with a data catalog.default AmazonRedshiftNodeData.Builder
connection
(Consumer<Option.Builder> connection) The Glue connection to the Redshift cluster.connection
(Option connection) The Glue connection to the Redshift cluster.crawlerConnection
(String crawlerConnection) Specifies the name of the connection that is associated with the catalog table used.default AmazonRedshiftNodeData.Builder
iamRole
(Consumer<Option.Builder> iamRole) Optional.Optional.mergeAction
(String mergeAction) The action used when to detemine how a MERGE in a Redshift sink will be handled.mergeClause
(String mergeClause) The SQL used in a custom merge to deal with matching records.mergeWhenMatched
(String mergeWhenMatched) The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.mergeWhenNotMatched
(String mergeWhenNotMatched) The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.postAction
(String postAction) The SQL used before a MERGE or APPEND with upsert is run.The SQL used before a MERGE or APPEND with upsert is run.sampleQuery
(String sampleQuery) The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.default AmazonRedshiftNodeData.Builder
schema
(Consumer<Option.Builder> schema) The Redshift schema name when working with a direct connection.The Redshift schema name when working with a direct connection.selectedColumns
(Collection<Option> selectedColumns) The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.selectedColumns
(Consumer<Option.Builder>... selectedColumns) The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.selectedColumns
(Option... selectedColumns) The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.sourceType
(String sourceType) The source type to specify whether a specific table is the source or a custom query.stagingTable
(String stagingTable) The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.default AmazonRedshiftNodeData.Builder
table
(Consumer<Option.Builder> table) The Redshift table name when working with a direct connection.The Redshift table name when working with a direct connection.tablePrefix
(String tablePrefix) Specifies the prefix to a table.tableSchema
(Collection<Option> tableSchema) The array of schema output for a given node.tableSchema
(Consumer<Option.Builder>... tableSchema) The array of schema output for a given node.tableSchema
(Option... tableSchema) The array of schema output for a given node.The Amazon S3 path where temporary data can be staged when copying out of the database.The action used on Redshift sinks when doing an APPEND.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accessType
The access type for the Redshift connection. Can be a direct connection or catalog connections.
- Parameters:
accessType
- The access type for the Redshift connection. Can be a direct connection or catalog connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceType
The source type to specify whether a specific table is the source or a custom query.
- Parameters:
sourceType
- The source type to specify whether a specific table is the source or a custom query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
The Glue connection to the Redshift cluster.
- Parameters:
connection
- The Glue connection to the Redshift cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
The Glue connection to the Redshift cluster.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnection(Option)
.- Parameters:
connection
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schema
The Redshift schema name when working with a direct connection.
- Parameters:
schema
- The Redshift schema name when working with a direct connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schema
The Redshift schema name when working with a direct connection.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschema(Option)
.- Parameters:
schema
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
table
The Redshift table name when working with a direct connection.
- Parameters:
table
- The Redshift table name when working with a direct connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
table
The Redshift table name when working with a direct connection.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totable(Option)
.- Parameters:
table
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
catalogDatabase
The name of the Glue Data Catalog database when working with a data catalog.
- Parameters:
catalogDatabase
- The name of the Glue Data Catalog database when working with a data catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogDatabase
The name of the Glue Data Catalog database when working with a data catalog.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocatalogDatabase(Option)
.- Parameters:
catalogDatabase
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
catalogTable
The Glue Data Catalog table name when working with a data catalog.
- Parameters:
catalogTable
- The Glue Data Catalog table name when working with a data catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogTable
The Glue Data Catalog table name when working with a data catalog.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocatalogTable(Option)
.- Parameters:
catalogTable
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
catalogRedshiftSchema
The Redshift schema name when working with a data catalog.
- Parameters:
catalogRedshiftSchema
- The Redshift schema name when working with a data catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogRedshiftTable
The database table to read from.
- Parameters:
catalogRedshiftTable
- The database table to read from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tempDir
The Amazon S3 path where temporary data can be staged when copying out of the database.
- Parameters:
tempDir
- The Amazon S3 path where temporary data can be staged when copying out of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRole
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
- Parameters:
iamRole
- Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamRole
Optional. The role name use when connection to S3. The IAM role ill default to the role on the job when left blank.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamRole(Option)
.- Parameters:
iamRole
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
advancedOptions
AmazonRedshiftNodeData.Builder advancedOptions(Collection<AmazonRedshiftAdvancedOption> advancedOptions) Optional values when connecting to the Redshift cluster.
- Parameters:
advancedOptions
- Optional values when connecting to the Redshift cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
advancedOptions
Optional values when connecting to the Redshift cluster.
- Parameters:
advancedOptions
- Optional values when connecting to the Redshift cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
advancedOptions
AmazonRedshiftNodeData.Builder advancedOptions(Consumer<AmazonRedshiftAdvancedOption.Builder>... advancedOptions) Optional values when connecting to the Redshift cluster.
This is a convenience method that creates an instance of theAmazonRedshiftAdvancedOption.Builder
avoiding the need to create one manually viaAmazonRedshiftAdvancedOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadvancedOptions(List<AmazonRedshiftAdvancedOption>)
.- Parameters:
advancedOptions
- a consumer that will call methods onAmazonRedshiftAdvancedOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sampleQuery
The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.
- Parameters:
sampleQuery
- The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preAction
The SQL used before a MERGE or APPEND with upsert is run.
- Parameters:
preAction
- The SQL used before a MERGE or APPEND with upsert is run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postAction
The SQL used before a MERGE or APPEND with upsert is run.
- Parameters:
postAction
- The SQL used before a MERGE or APPEND with upsert is run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Specifies how writing to a Redshift cluser will occur.
- Parameters:
action
- Specifies how writing to a Redshift cluser will occur.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tablePrefix
Specifies the prefix to a table.
- Parameters:
tablePrefix
- Specifies the prefix to a table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
upsert
The action used on Redshift sinks when doing an APPEND.
- Parameters:
upsert
- The action used on Redshift sinks when doing an APPEND.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeAction
The action used when to detemine how a MERGE in a Redshift sink will be handled.
- Parameters:
mergeAction
- The action used when to detemine how a MERGE in a Redshift sink will be handled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeWhenMatched
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.
- Parameters:
mergeWhenMatched
- The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record matches a new record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeWhenNotMatched
The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.
- Parameters:
mergeWhenNotMatched
- The action used when to detemine how a MERGE in a Redshift sink will be handled when an existing record doesn't match a new record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeClause
The SQL used in a custom merge to deal with matching records.
- Parameters:
mergeClause
- The SQL used in a custom merge to deal with matching records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crawlerConnection
Specifies the name of the connection that is associated with the catalog table used.
- Parameters:
crawlerConnection
- Specifies the name of the connection that is associated with the catalog table used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
The array of schema output for a given node.
- Parameters:
tableSchema
- The array of schema output for a given node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
The array of schema output for a given node.
- Parameters:
tableSchema
- The array of schema output for a given node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableSchema
The array of schema output for a given node.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totableSchema(List<Option>)
.- Parameters:
tableSchema
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stagingTable
The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.
- Parameters:
stagingTable
- The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
- Parameters:
selectedColumns
- The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
- Parameters:
selectedColumns
- The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectedColumns
The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.
This is a convenience method that creates an instance of theOption.Builder
avoiding the need to create one manually viaOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toselectedColumns(List<Option>)
.- Parameters:
selectedColumns
- a consumer that will call methods onOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-