public static final class TableProps.Builder
extends java.lang.Object
TableProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TableProps.Builder |
adminUser(ISecret adminUser)
Sets the value of
DatabaseOptions.getAdminUser() |
TableProps |
build()
Builds the configured instance.
|
TableProps.Builder |
cluster(ICluster cluster)
Sets the value of
DatabaseOptions.getCluster() |
TableProps.Builder |
databaseName(java.lang.String databaseName)
Sets the value of
DatabaseOptions.getDatabaseName() |
TableProps.Builder |
distStyle(TableDistStyle distStyle)
Sets the value of
TableProps.getDistStyle() |
TableProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
TableProps.getRemovalPolicy() |
TableProps.Builder |
sortStyle(TableSortStyle sortStyle)
Sets the value of
TableProps.getSortStyle() |
TableProps.Builder |
tableColumns(java.util.List<? extends Column> tableColumns)
Sets the value of
TableProps.getTableColumns() |
TableProps.Builder |
tableName(java.lang.String tableName)
Sets the value of
TableProps.getTableName() |
public TableProps.Builder tableColumns(java.util.List<? extends Column> tableColumns)
TableProps.getTableColumns()
tableColumns
- The columns of the table. This parameter is required.this
public TableProps.Builder distStyle(TableDistStyle distStyle)
TableProps.getDistStyle()
distStyle
- The distribution style of the table.this
public TableProps.Builder removalPolicy(RemovalPolicy removalPolicy)
TableProps.getRemovalPolicy()
removalPolicy
- The policy to apply when this resource is removed from the application.this
public TableProps.Builder sortStyle(TableSortStyle sortStyle)
TableProps.getSortStyle()
sortStyle
- The sort style of the table.this
public TableProps.Builder tableName(java.lang.String tableName)
TableProps.getTableName()
tableName
- The name of the table.this
public TableProps.Builder cluster(ICluster cluster)
DatabaseOptions.getCluster()
cluster
- The cluster containing the database. This parameter is required.this
public TableProps.Builder databaseName(java.lang.String databaseName)
DatabaseOptions.getDatabaseName()
databaseName
- The name of the database. This parameter is required.this
public TableProps.Builder adminUser(ISecret adminUser)
DatabaseOptions.getAdminUser()
adminUser
- The secret containing credentials to a Redshift user with administrator privileges.
Secret JSON schema: { username: string; password: string }
.this
public TableProps build()
TableProps
java.lang.NullPointerException
- if any required attribute was not provided