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