Class TableAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.TableAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableAttributes>
- Enclosing interface:
TableAttributes
@Stability(Experimental)
public static final class TableAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<TableAttributes>
A builder for
TableAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofTableAttributes.getCluster()
databaseName
(String databaseName) Sets the value ofTableAttributes.getDatabaseName()
tableColumns
(List<? extends Column> tableColumns) Sets the value ofTableAttributes.getTableColumns()
Sets the value ofTableAttributes.getTableName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofTableAttributes.getCluster()
- Parameters:
cluster
- The cluster where the table is located. This parameter is required.- Returns:
this
-
databaseName
Sets the value ofTableAttributes.getDatabaseName()
- Parameters:
databaseName
- The name of the database where the table is located. This parameter is required.- Returns:
this
-
tableColumns
@Stability(Experimental) public TableAttributes.Builder tableColumns(List<? extends Column> tableColumns) Sets the value ofTableAttributes.getTableColumns()
- Parameters:
tableColumns
- The columns of the table. This parameter is required.- Returns:
this
-
tableName
Sets the value ofTableAttributes.getTableName()
- Parameters:
tableName
- Name of the table. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TableAttributes>
- Returns:
- a new instance of
TableAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-