Class CfnStorageLens.BucketLevelProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.BucketLevelProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.BucketLevelProperty>
- Enclosing interface:
CfnStorageLens.BucketLevelProperty
@Stability(Stable)
public static final class CfnStorageLens.BucketLevelProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.BucketLevelProperty>
A builder for
CfnStorageLens.BucketLevelProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivityMetrics
(IResolvable activityMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getActivityMetrics()
activityMetrics
(CfnStorageLens.ActivityMetricsProperty activityMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getActivityMetrics()
advancedCostOptimizationMetrics
(IResolvable advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedCostOptimizationMetrics()
advancedCostOptimizationMetrics
(CfnStorageLens.AdvancedCostOptimizationMetricsProperty advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedCostOptimizationMetrics()
advancedDataProtectionMetrics
(IResolvable advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedDataProtectionMetrics()
advancedDataProtectionMetrics
(CfnStorageLens.AdvancedDataProtectionMetricsProperty advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedDataProtectionMetrics()
build()
Builds the configured instance.detailedStatusCodesMetrics
(IResolvable detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getDetailedStatusCodesMetrics()
detailedStatusCodesMetrics
(CfnStorageLens.DetailedStatusCodesMetricsProperty detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getDetailedStatusCodesMetrics()
prefixLevel
(IResolvable prefixLevel) Sets the value ofCfnStorageLens.BucketLevelProperty.getPrefixLevel()
prefixLevel
(CfnStorageLens.PrefixLevelProperty prefixLevel) Sets the value ofCfnStorageLens.BucketLevelProperty.getPrefixLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activityMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder activityMetrics(IResolvable activityMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getActivityMetrics()
- Parameters:
activityMetrics
- A property for bucket-level activity metrics for S3 Storage Lens.- Returns:
this
-
activityMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder activityMetrics(CfnStorageLens.ActivityMetricsProperty activityMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getActivityMetrics()
- Parameters:
activityMetrics
- A property for bucket-level activity metrics for S3 Storage Lens.- Returns:
this
-
advancedCostOptimizationMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder advancedCostOptimizationMetrics(IResolvable advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedCostOptimizationMetrics()
- Parameters:
advancedCostOptimizationMetrics
- A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.- Returns:
this
-
advancedCostOptimizationMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder advancedCostOptimizationMetrics(CfnStorageLens.AdvancedCostOptimizationMetricsProperty advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedCostOptimizationMetrics()
- Parameters:
advancedCostOptimizationMetrics
- A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.- Returns:
this
-
advancedDataProtectionMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder advancedDataProtectionMetrics(IResolvable advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedDataProtectionMetrics()
- Parameters:
advancedDataProtectionMetrics
- A property for bucket-level advanced data protection metrics for S3 Storage Lens.- Returns:
this
-
advancedDataProtectionMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder advancedDataProtectionMetrics(CfnStorageLens.AdvancedDataProtectionMetricsProperty advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getAdvancedDataProtectionMetrics()
- Parameters:
advancedDataProtectionMetrics
- A property for bucket-level advanced data protection metrics for S3 Storage Lens.- Returns:
this
-
detailedStatusCodesMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder detailedStatusCodesMetrics(IResolvable detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getDetailedStatusCodesMetrics()
- Parameters:
detailedStatusCodesMetrics
- A property for bucket-level detailed status code metrics for S3 Storage Lens.- Returns:
this
-
detailedStatusCodesMetrics
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder detailedStatusCodesMetrics(CfnStorageLens.DetailedStatusCodesMetricsProperty detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.BucketLevelProperty.getDetailedStatusCodesMetrics()
- Parameters:
detailedStatusCodesMetrics
- A property for bucket-level detailed status code metrics for S3 Storage Lens.- Returns:
this
-
prefixLevel
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder prefixLevel(IResolvable prefixLevel) Sets the value ofCfnStorageLens.BucketLevelProperty.getPrefixLevel()
- Parameters:
prefixLevel
- A property for bucket-level prefix-level storage metrics for S3 Storage Lens.- Returns:
this
-
prefixLevel
@Stability(Stable) public CfnStorageLens.BucketLevelProperty.Builder prefixLevel(CfnStorageLens.PrefixLevelProperty prefixLevel) Sets the value ofCfnStorageLens.BucketLevelProperty.getPrefixLevel()
- Parameters:
prefixLevel
- A property for bucket-level prefix-level storage metrics for S3 Storage Lens.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStorageLens.BucketLevelProperty>
- Returns:
- a new instance of
CfnStorageLens.BucketLevelProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-