Class CfnStorageLens.AdvancedCostOptimizationMetricsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.AdvancedCostOptimizationMetricsProperty>
- Enclosing interface:
CfnStorageLens.AdvancedCostOptimizationMetricsProperty
@Stability(Stable)
public static final class CfnStorageLens.AdvancedCostOptimizationMetricsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.AdvancedCostOptimizationMetricsProperty>
A builder for
CfnStorageLens.AdvancedCostOptimizationMetricsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnStorageLens.AdvancedCostOptimizationMetricsProperty.getIsEnabled()isEnabled(IResolvable isEnabled) Sets the value ofCfnStorageLens.AdvancedCostOptimizationMetricsProperty.getIsEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isEnabled
@Stability(Stable) public CfnStorageLens.AdvancedCostOptimizationMetricsProperty.Builder isEnabled(Boolean isEnabled) Sets the value ofCfnStorageLens.AdvancedCostOptimizationMetricsProperty.getIsEnabled()- Parameters:
isEnabled- Indicates whether advanced cost optimization metrics are enabled.- Returns:
this
-
isEnabled
@Stability(Stable) public CfnStorageLens.AdvancedCostOptimizationMetricsProperty.Builder isEnabled(IResolvable isEnabled) Sets the value ofCfnStorageLens.AdvancedCostOptimizationMetricsProperty.getIsEnabled()- Parameters:
isEnabled- Indicates whether advanced cost optimization metrics are enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLens.AdvancedCostOptimizationMetricsProperty>- Returns:
- a new instance of
CfnStorageLens.AdvancedCostOptimizationMetricsProperty - Throws:
NullPointerException- if any required attribute was not provided
-