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