Class CfnTableOptimizerProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTableOptimizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTableOptimizerProps>
- Enclosing interface:
CfnTableOptimizerProps
@Stability(Stable)
public static final class CfnTableOptimizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTableOptimizerProps>
A builder for
CfnTableOptimizerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTableOptimizerProps.getCatalogId()databaseName(String databaseName) Sets the value ofCfnTableOptimizerProps.getDatabaseName()Sets the value ofCfnTableOptimizerProps.getTableName()tableOptimizerConfiguration(IResolvable tableOptimizerConfiguration) Sets the value ofCfnTableOptimizerProps.getTableOptimizerConfiguration()tableOptimizerConfiguration(CfnTableOptimizer.TableOptimizerConfigurationProperty tableOptimizerConfiguration) Sets the value ofCfnTableOptimizerProps.getTableOptimizerConfiguration()Sets the value ofCfnTableOptimizerProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
catalogId
Sets the value ofCfnTableOptimizerProps.getCatalogId()- Parameters:
catalogId- The catalog ID of the table. This parameter is required.- Returns:
this
-
databaseName
Sets the value ofCfnTableOptimizerProps.getDatabaseName()- Parameters:
databaseName- The name of the database. This parameter is required. For Hive compatibility, this is folded to lowercase when it is stored.- Returns:
this
-
tableName
Sets the value ofCfnTableOptimizerProps.getTableName()- Parameters:
tableName- The table name. This parameter is required. For Hive compatibility, this must be entirely lowercase.- Returns:
this
-
tableOptimizerConfiguration
@Stability(Stable) public CfnTableOptimizerProps.Builder tableOptimizerConfiguration(IResolvable tableOptimizerConfiguration) Sets the value ofCfnTableOptimizerProps.getTableOptimizerConfiguration()- Parameters:
tableOptimizerConfiguration- Specifies configuration details of a table optimizer. This parameter is required.- Returns:
this
-
tableOptimizerConfiguration
@Stability(Stable) public CfnTableOptimizerProps.Builder tableOptimizerConfiguration(CfnTableOptimizer.TableOptimizerConfigurationProperty tableOptimizerConfiguration) Sets the value ofCfnTableOptimizerProps.getTableOptimizerConfiguration()- Parameters:
tableOptimizerConfiguration- Specifies configuration details of a table optimizer. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnTableOptimizerProps.getType()- Parameters:
type- The type of table optimizer. The valid values are:. This parameter is required.- compaction - for managing compaction with a table optimizer.
- retention - for managing the retention of snapshot with a table optimizer.
- orphan_file_deletion - for managing the deletion of orphan files with a table optimizer.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTableOptimizerProps>- Returns:
- a new instance of
CfnTableOptimizerProps - Throws:
NullPointerException- if any required attribute was not provided
-