Interface AmazonRedshiftNodeData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AmazonRedshiftNodeData.Builder,AmazonRedshiftNodeData>,SdkBuilder<AmazonRedshiftNodeData.Builder,AmazonRedshiftNodeData>,SdkPojo
- Enclosing class:
- AmazonRedshiftNodeData
public static interface AmazonRedshiftNodeData.Builder extends SdkPojo, CopyableBuilder<AmazonRedshiftNodeData.Builder,AmazonRedshiftNodeData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AmazonRedshiftNodeData.BuilderaccessType(String accessType)The access type for the Redshift connection.AmazonRedshiftNodeData.Builderaction(String action)Specifies how writing to a Redshift cluser will occur.AmazonRedshiftNodeData.BuilderadvancedOptions(Collection<AmazonRedshiftAdvancedOption> advancedOptions)Optional values when connecting to the Redshift cluster.AmazonRedshiftNodeData.BuilderadvancedOptions(Consumer<AmazonRedshiftAdvancedOption.Builder>... advancedOptions)Optional values when connecting to the Redshift cluster.AmazonRedshiftNodeData.BuilderadvancedOptions(AmazonRedshiftAdvancedOption... advancedOptions)Optional values when connecting to the Redshift cluster.default AmazonRedshiftNodeData.BuildercatalogDatabase(Consumer<Option.Builder> catalogDatabase)The name of the Glue Data Catalog database when working with a data catalog.AmazonRedshiftNodeData.BuildercatalogDatabase(Option catalogDatabase)The name of the Glue Data Catalog database when working with a data catalog.AmazonRedshiftNodeData.BuildercatalogRedshiftSchema(String catalogRedshiftSchema)The Redshift schema name when working with a data catalog.AmazonRedshiftNodeData.BuildercatalogRedshiftTable(String catalogRedshiftTable)The database table to read from.default AmazonRedshiftNodeData.BuildercatalogTable(Consumer<Option.Builder> catalogTable)The Glue Data Catalog table name when working with a data catalog.AmazonRedshiftNodeData.BuildercatalogTable(Option catalogTable)The Glue Data Catalog table name when working with a data catalog.default AmazonRedshiftNodeData.Builderconnection(Consumer<Option.Builder> connection)The Glue connection to the Redshift cluster.AmazonRedshiftNodeData.Builderconnection(Option connection)The Glue connection to the Redshift cluster.AmazonRedshiftNodeData.BuildercrawlerConnection(String crawlerConnection)Specifies the name of the connection that is associated with the catalog table used.default AmazonRedshiftNodeData.BuilderiamRole(Consumer<Option.Builder> iamRole)Optional.AmazonRedshiftNodeData.BuilderiamRole(Option iamRole)Optional.AmazonRedshiftNodeData.BuildermergeAction(String mergeAction)The action used when to detemine how a MERGE in a Redshift sink will be handled.AmazonRedshiftNodeData.BuildermergeClause(String mergeClause)The SQL used in a custom merge to deal with matching records.AmazonRedshiftNodeData.BuildermergeWhenMatched(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.AmazonRedshiftNodeData.BuildermergeWhenNotMatched(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.AmazonRedshiftNodeData.BuilderpostAction(String postAction)The SQL used before a MERGE or APPEND with upsert is run.AmazonRedshiftNodeData.BuilderpreAction(String preAction)The SQL used before a MERGE or APPEND with upsert is run.AmazonRedshiftNodeData.BuildersampleQuery(String sampleQuery)The SQL used to fetch the data from a Redshift sources when the SourceType is 'query'.default AmazonRedshiftNodeData.Builderschema(Consumer<Option.Builder> schema)The Redshift schema name when working with a direct connection.AmazonRedshiftNodeData.Builderschema(Option schema)The Redshift schema name when working with a direct connection.AmazonRedshiftNodeData.BuilderselectedColumns(Collection<Option> selectedColumns)The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.AmazonRedshiftNodeData.BuilderselectedColumns(Consumer<Option.Builder>... selectedColumns)The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.AmazonRedshiftNodeData.BuilderselectedColumns(Option... selectedColumns)The list of column names used to determine a matching record when doing a MERGE or APPEND with upsert.AmazonRedshiftNodeData.BuildersourceType(String sourceType)The source type to specify whether a specific table is the source or a custom query.AmazonRedshiftNodeData.BuilderstagingTable(String stagingTable)The name of the temporary staging table that is used when doing a MERGE or APPEND with upsert.default AmazonRedshiftNodeData.Buildertable(Consumer<Option.Builder> table)The Redshift table name when working with a direct connection.AmazonRedshiftNodeData.Buildertable(Option table)The Redshift table name when working with a direct connection.AmazonRedshiftNodeData.BuildertablePrefix(String tablePrefix)Specifies the prefix to a table.AmazonRedshiftNodeData.BuildertableSchema(Collection<Option> tableSchema)The array of schema output for a given node.AmazonRedshiftNodeData.BuildertableSchema(Consumer<Option.Builder>... tableSchema)The array of schema output for a given node.AmazonRedshiftNodeData.BuildertableSchema(Option... tableSchema)The array of schema output for a given node.AmazonRedshiftNodeData.BuildertempDir(String tempDir)The Amazon S3 path where temporary data can be staged when copying out of the database.AmazonRedshiftNodeData.Builderupsert(Boolean upsert)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 Detail
-
accessType
AmazonRedshiftNodeData.Builder accessType(String 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
AmazonRedshiftNodeData.Builder sourceType(String 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
AmazonRedshiftNodeData.Builder connection(Option 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
default AmazonRedshiftNodeData.Builder connection(Consumer<Option.Builder> connection)
The Glue connection to the Redshift cluster.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
connection(Option)
-
schema
AmazonRedshiftNodeData.Builder schema(Option 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
default AmazonRedshiftNodeData.Builder schema(Consumer<Option.Builder> schema)
The Redshift schema name when working with a direct connection.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
schema(Option)
-
table
AmazonRedshiftNodeData.Builder table(Option 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
default AmazonRedshiftNodeData.Builder table(Consumer<Option.Builder> table)
The Redshift table name when working with a direct connection.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
table(Option)
-
catalogDatabase
AmazonRedshiftNodeData.Builder catalogDatabase(Option 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
default AmazonRedshiftNodeData.Builder catalogDatabase(Consumer<Option.Builder> 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.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
catalogDatabase(Option)
-
catalogTable
AmazonRedshiftNodeData.Builder catalogTable(Option 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
default AmazonRedshiftNodeData.Builder catalogTable(Consumer<Option.Builder> catalogTable)
The Glue Data Catalog table name when working with a data catalog.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
catalogTable(Option)
-
catalogRedshiftSchema
AmazonRedshiftNodeData.Builder catalogRedshiftSchema(String 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
AmazonRedshiftNodeData.Builder catalogRedshiftTable(String 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
AmazonRedshiftNodeData.Builder tempDir(String 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
AmazonRedshiftNodeData.Builder iamRole(Option 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
default AmazonRedshiftNodeData.Builder iamRole(Consumer<Option.Builder> 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.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,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:
iamRole(Option)
-
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
AmazonRedshiftNodeData.Builder advancedOptions(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
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.Builderavoiding the need to create one manually viaAmazonRedshiftAdvancedOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#advancedOptions(List.) - 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:
#advancedOptions(java.util.Collection)
-
sampleQuery
AmazonRedshiftNodeData.Builder sampleQuery(String 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
AmazonRedshiftNodeData.Builder preAction(String 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
AmazonRedshiftNodeData.Builder postAction(String 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
AmazonRedshiftNodeData.Builder action(String 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
AmazonRedshiftNodeData.Builder tablePrefix(String 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
AmazonRedshiftNodeData.Builder upsert(Boolean 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
AmazonRedshiftNodeData.Builder mergeAction(String 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
AmazonRedshiftNodeData.Builder 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.
- 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
AmazonRedshiftNodeData.Builder 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.
- 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
AmazonRedshiftNodeData.Builder mergeClause(String 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
AmazonRedshiftNodeData.Builder crawlerConnection(String 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
AmazonRedshiftNodeData.Builder tableSchema(Collection<Option> 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
AmazonRedshiftNodeData.Builder tableSchema(Option... 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
AmazonRedshiftNodeData.Builder tableSchema(Consumer<Option.Builder>... tableSchema)
The array of schema output for a given node.
This is a convenience method that creates an instance of theOption.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tableSchema(List.- 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:
#tableSchema(java.util.Collection
-
stagingTable
AmazonRedshiftNodeData.Builder stagingTable(String 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
AmazonRedshiftNodeData.Builder selectedColumns(Collection<Option> 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
AmazonRedshiftNodeData.Builder selectedColumns(Option... 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
AmazonRedshiftNodeData.Builder selectedColumns(Consumer<Option.Builder>... 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.Builderavoiding the need to create one manually viaOption.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#selectedColumns(List.- 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:
#selectedColumns(java.util.Collection
-
-