Class CfnStorageLens.AccountLevelProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.AccountLevelProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.AccountLevelProperty>
- Enclosing interface:
CfnStorageLens.AccountLevelProperty
@Stability(Stable)
public static final class CfnStorageLens.AccountLevelProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.AccountLevelProperty>
A builder for
CfnStorageLens.AccountLevelProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityMetrics(IResolvable activityMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getActivityMetrics()activityMetrics(CfnStorageLens.ActivityMetricsProperty activityMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getActivityMetrics()advancedCostOptimizationMetrics(IResolvable advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedCostOptimizationMetrics()advancedCostOptimizationMetrics(CfnStorageLens.AdvancedCostOptimizationMetricsProperty advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedCostOptimizationMetrics()advancedDataProtectionMetrics(IResolvable advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedDataProtectionMetrics()advancedDataProtectionMetrics(CfnStorageLens.AdvancedDataProtectionMetricsProperty advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedDataProtectionMetrics()bucketLevel(IResolvable bucketLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getBucketLevel()bucketLevel(CfnStorageLens.BucketLevelProperty bucketLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getBucketLevel()build()Builds the configured instance.detailedStatusCodesMetrics(IResolvable detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getDetailedStatusCodesMetrics()detailedStatusCodesMetrics(CfnStorageLens.DetailedStatusCodesMetricsProperty detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getDetailedStatusCodesMetrics()storageLensGroupLevel(IResolvable storageLensGroupLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getStorageLensGroupLevel()storageLensGroupLevel(CfnStorageLens.StorageLensGroupLevelProperty storageLensGroupLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getStorageLensGroupLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketLevel
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder bucketLevel(IResolvable bucketLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getBucketLevel()- Parameters:
bucketLevel- This property contains the details of the account-level bucket-level configurations for Amazon S3 Storage Lens. This parameter is required. To enable bucket-level configurations, make sure to also set the same metrics at the account level.- Returns:
this
-
bucketLevel
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder bucketLevel(CfnStorageLens.BucketLevelProperty bucketLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getBucketLevel()- Parameters:
bucketLevel- This property contains the details of the account-level bucket-level configurations for Amazon S3 Storage Lens. This parameter is required. To enable bucket-level configurations, make sure to also set the same metrics at the account level.- Returns:
this
-
activityMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder activityMetrics(IResolvable activityMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getActivityMetrics()- Parameters:
activityMetrics- This property contains the details of account-level activity metrics for S3 Storage Lens.- Returns:
this
-
activityMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder activityMetrics(CfnStorageLens.ActivityMetricsProperty activityMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getActivityMetrics()- Parameters:
activityMetrics- This property contains the details of account-level activity metrics for S3 Storage Lens.- Returns:
this
-
advancedCostOptimizationMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder advancedCostOptimizationMetrics(IResolvable advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedCostOptimizationMetrics()- Parameters:
advancedCostOptimizationMetrics- This property contains the details of account-level advanced cost optimization metrics for S3 Storage Lens.- Returns:
this
-
advancedCostOptimizationMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder advancedCostOptimizationMetrics(CfnStorageLens.AdvancedCostOptimizationMetricsProperty advancedCostOptimizationMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedCostOptimizationMetrics()- Parameters:
advancedCostOptimizationMetrics- This property contains the details of account-level advanced cost optimization metrics for S3 Storage Lens.- Returns:
this
-
advancedDataProtectionMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder advancedDataProtectionMetrics(IResolvable advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedDataProtectionMetrics()- Parameters:
advancedDataProtectionMetrics- This property contains the details of account-level advanced data protection metrics for S3 Storage Lens.- Returns:
this
-
advancedDataProtectionMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder advancedDataProtectionMetrics(CfnStorageLens.AdvancedDataProtectionMetricsProperty advancedDataProtectionMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getAdvancedDataProtectionMetrics()- Parameters:
advancedDataProtectionMetrics- This property contains the details of account-level advanced data protection metrics for S3 Storage Lens.- Returns:
this
-
detailedStatusCodesMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder detailedStatusCodesMetrics(IResolvable detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getDetailedStatusCodesMetrics()- Parameters:
detailedStatusCodesMetrics- This property contains the details of account-level detailed status code metrics for S3 Storage Lens.- Returns:
this
-
detailedStatusCodesMetrics
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder detailedStatusCodesMetrics(CfnStorageLens.DetailedStatusCodesMetricsProperty detailedStatusCodesMetrics) Sets the value ofCfnStorageLens.AccountLevelProperty.getDetailedStatusCodesMetrics()- Parameters:
detailedStatusCodesMetrics- This property contains the details of account-level detailed status code metrics for S3 Storage Lens.- Returns:
this
-
storageLensGroupLevel
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder storageLensGroupLevel(IResolvable storageLensGroupLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getStorageLensGroupLevel()- Parameters:
storageLensGroupLevel- This property determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.- Returns:
this
-
storageLensGroupLevel
@Stability(Stable) public CfnStorageLens.AccountLevelProperty.Builder storageLensGroupLevel(CfnStorageLens.StorageLensGroupLevelProperty storageLensGroupLevel) Sets the value ofCfnStorageLens.AccountLevelProperty.getStorageLensGroupLevel()- Parameters:
storageLensGroupLevel- This property determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLens.AccountLevelProperty>- Returns:
- a new instance of
CfnStorageLens.AccountLevelProperty - Throws:
NullPointerException- if any required attribute was not provided
-