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