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
- the value to be set.- Returns:
this
-
orphanFileDeletionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder orphanFileDeletionConfiguration(CfnTableOptimizer.OrphanFileDeletionConfigurationProperty orphanFileDeletionConfiguration) Sets the value ofCfnTableOptimizer.TableOptimizerConfigurationProperty.getOrphanFileDeletionConfiguration()
- Parameters:
orphanFileDeletionConfiguration
- the value to be set.- Returns:
this
-
retentionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder retentionConfiguration(IResolvable retentionConfiguration) - Parameters:
retentionConfiguration
- the value to be set.- Returns:
this
-
retentionConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder retentionConfiguration(CfnTableOptimizer.RetentionConfigurationProperty retentionConfiguration) - Parameters:
retentionConfiguration
- the value to be set.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder vpcConfiguration(IResolvable vpcConfiguration) - Parameters:
vpcConfiguration
- the value to be set.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnTableOptimizer.TableOptimizerConfigurationProperty.Builder vpcConfiguration(CfnTableOptimizer.VpcConfigurationProperty vpcConfiguration) - Parameters:
vpcConfiguration
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTableOptimizer.TableOptimizerConfigurationProperty>
- Returns:
- a new instance of
CfnTableOptimizer.TableOptimizerConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-