Class TableProps.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.TableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableProps>
- Enclosing interface:
TableProps
@Stability(Experimental)
public static final class TableProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableProps>
A builder for
TableProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDatabaseOptions.getAdminUser()
build()
Builds the configured instance.Sets the value ofDatabaseOptions.getCluster()
databaseName
(String databaseName) Sets the value ofDatabaseOptions.getDatabaseName()
distStyle
(TableDistStyle distStyle) Sets the value ofTableProps.getDistStyle()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofTableProps.getRemovalPolicy()
sortStyle
(TableSortStyle sortStyle) Sets the value ofTableProps.getSortStyle()
tableColumns
(List<? extends Column> tableColumns) Sets the value ofTableProps.getTableColumns()
Sets the value ofTableProps.getTableName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tableColumns
@Stability(Experimental) public TableProps.Builder tableColumns(List<? extends Column> tableColumns) Sets the value ofTableProps.getTableColumns()
- Parameters:
tableColumns
- The columns of the table. This parameter is required.- Returns:
this
-
distStyle
Sets the value ofTableProps.getDistStyle()
- Parameters:
distStyle
- The distribution style of the table.- Returns:
this
-
removalPolicy
Sets the value ofTableProps.getRemovalPolicy()
- Parameters:
removalPolicy
- The policy to apply when this resource is removed from the application.- Returns:
this
-
sortStyle
Sets the value ofTableProps.getSortStyle()
- Parameters:
sortStyle
- The sort style of the table.- Returns:
this
-
tableName
Sets the value ofTableProps.getTableName()
- Parameters:
tableName
- The name of the table.- Returns:
this
-
cluster
Sets the value ofDatabaseOptions.getCluster()
- Parameters:
cluster
- The cluster containing the database. This parameter is required.- Returns:
this
-
databaseName
Sets the value ofDatabaseOptions.getDatabaseName()
- Parameters:
databaseName
- The name of the database. This parameter is required.- Returns:
this
-
adminUser
Sets the value ofDatabaseOptions.getAdminUser()
- Parameters:
adminUser
- The secret containing credentials to a Redshift user with administrator privileges. Secret JSON schema:{ username: string; password: string }
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TableProps>
- Returns:
- a new instance of
TableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-