Class CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTableOptimizer.TableOptimizerConfigurationProperty>
- Enclosing interface:
CfnTableOptimizer.TableOptimizerConfigurationProperty
@Stability(Stable)
public static final class CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTableOptimizer.TableOptimizerConfigurationProperty>
A builder for
CfnTableOptimizer.TableOptimizerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getEnabled()orphanFileDeletionConfiguration(IResolvable orphanFileDeletionConfiguration) orphanFileDeletionConfiguration(CfnTableOptimizer.OrphanFileDeletionConfigurationProperty orphanFileDeletionConfiguration) retentionConfiguration(IResolvable retentionConfiguration) retentionConfiguration(CfnTableOptimizer.RetentionConfigurationProperty retentionConfiguration) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getRoleArn()vpcConfiguration(IResolvable vpcConfiguration) vpcConfiguration(CfnTableOptimizer.VpcConfigurationProperty vpcConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getEnabled()- Parameters:
enabled- Whether the table optimization is enabled. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getEnabled()- Parameters:
enabled- Whether the table optimization is enabled. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getRoleArn()- Parameters:
roleArn- A role passed by the caller which gives the service permission to update the resources associated with the optimizer on the caller's behalf. This parameter is required.- Returns:
this
-
orphanFileDeletionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder orphanFileDeletionConfiguration(IResolvable orphanFileDeletionConfiguration) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getOrphanFileDeletionConfiguration()- Parameters:
orphanFileDeletionConfiguration-OrphanFileDeletionConfigurationis a property that can be included within the TableOptimizer resource. It controls the automatic deletion of orphaned files - files that are not tracked by the table metadata, and older than the configured age limit.- Returns:
this
-
orphanFileDeletionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder orphanFileDeletionConfiguration(CfnTableOptimizer.OrphanFileDeletionConfigurationProperty orphanFileDeletionConfiguration) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getOrphanFileDeletionConfiguration()- Parameters:
orphanFileDeletionConfiguration-OrphanFileDeletionConfigurationis a property that can be included within the TableOptimizer resource. It controls the automatic deletion of orphaned files - files that are not tracked by the table metadata, and older than the configured age limit.- Returns:
this
-
retentionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder retentionConfiguration(IResolvable retentionConfiguration) - Parameters:
retentionConfiguration- The configuration for a snapshot retention optimizer for Apache Iceberg tables.- Returns:
this
-
retentionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder retentionConfiguration(CfnTableOptimizer.RetentionConfigurationProperty retentionConfiguration) - Parameters:
retentionConfiguration- The configuration for a snapshot retention optimizer for Apache Iceberg tables.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder vpcConfiguration(IResolvable vpcConfiguration) - Parameters:
vpcConfiguration- An object that describes the VPC configuration for a table optimizer. This configuration is necessary to perform optimization on tables that are in a customer VPC.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder vpcConfiguration(CfnTableOptimizer.VpcConfigurationProperty vpcConfiguration) - Parameters:
vpcConfiguration- An object that describes the VPC configuration for a table optimizer. This configuration is necessary to perform optimization on tables that are in a customer VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTableOptimizer.TableOptimizerConfigurationProperty>- Returns:
- a new instance of
CfnTableOptimizer.TableOptimizerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-