Class CfnStorageLens.StorageLensConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.StorageLensConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.StorageLensConfigurationProperty>
- Enclosing interface:
CfnStorageLens.StorageLensConfigurationProperty
@Stability(Stable)
public static final class CfnStorageLens.StorageLensConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.StorageLensConfigurationProperty>
A builder for
CfnStorageLens.StorageLensConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountLevel(IResolvable accountLevel) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAccountLevel()accountLevel(CfnStorageLens.AccountLevelProperty accountLevel) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAccountLevel()awsOrg(IResolvable awsOrg) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAwsOrg()awsOrg(CfnStorageLens.AwsOrgProperty awsOrg) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAwsOrg()build()Builds the configured instance.dataExport(IResolvable dataExport) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getDataExport()dataExport(CfnStorageLens.DataExportProperty dataExport) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getDataExport()exclude(IResolvable exclude) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getExclude()Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getExclude()Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getId()include(IResolvable include) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getInclude()Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getInclude()Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getIsEnabled()isEnabled(IResolvable isEnabled) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getIsEnabled()storageLensArn(String storageLensArn) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getStorageLensArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountLevel
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder accountLevel(IResolvable accountLevel) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAccountLevel()- Parameters:
accountLevel- This property contains the details of the account-level metrics for Amazon S3 Storage Lens configuration. This parameter is required.- Returns:
this
-
accountLevel
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder accountLevel(CfnStorageLens.AccountLevelProperty accountLevel) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAccountLevel()- Parameters:
accountLevel- This property contains the details of the account-level metrics for Amazon S3 Storage Lens configuration. This parameter is required.- Returns:
this
-
id
Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getId()- Parameters:
id- This property contains the details of the ID of the S3 Storage Lens configuration. This parameter is required.- Returns:
this
-
isEnabled
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder isEnabled(Boolean isEnabled) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getIsEnabled()- Parameters:
isEnabled- This property contains the details of whether the Amazon S3 Storage Lens configuration is enabled. This parameter is required.- Returns:
this
-
isEnabled
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder isEnabled(IResolvable isEnabled) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getIsEnabled()- Parameters:
isEnabled- This property contains the details of whether the Amazon S3 Storage Lens configuration is enabled. This parameter is required.- Returns:
this
-
awsOrg
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder awsOrg(IResolvable awsOrg) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAwsOrg()- Parameters:
awsOrg- This property contains the details of the AWS Organization for the S3 Storage Lens configuration.- Returns:
this
-
awsOrg
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder awsOrg(CfnStorageLens.AwsOrgProperty awsOrg) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getAwsOrg()- Parameters:
awsOrg- This property contains the details of the AWS Organization for the S3 Storage Lens configuration.- Returns:
this
-
dataExport
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder dataExport(IResolvable dataExport) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getDataExport()- Parameters:
dataExport- This property contains the details of this S3 Storage Lens configuration's metrics export.- Returns:
this
-
dataExport
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder dataExport(CfnStorageLens.DataExportProperty dataExport) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getDataExport()- Parameters:
dataExport- This property contains the details of this S3 Storage Lens configuration's metrics export.- Returns:
this
-
exclude
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder exclude(IResolvable exclude) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getExclude()- Parameters:
exclude- This property contains the details of the bucket and or Regions excluded for Amazon S3 Storage Lens configuration.- Returns:
this
-
exclude
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder exclude(CfnStorageLens.BucketsAndRegionsProperty exclude) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getExclude()- Parameters:
exclude- This property contains the details of the bucket and or Regions excluded for Amazon S3 Storage Lens configuration.- Returns:
this
-
include
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder include(IResolvable include) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getInclude()- Parameters:
include- This property contains the details of the bucket and or Regions included for Amazon S3 Storage Lens configuration.- Returns:
this
-
include
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder include(CfnStorageLens.BucketsAndRegionsProperty include) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getInclude()- Parameters:
include- This property contains the details of the bucket and or Regions included for Amazon S3 Storage Lens configuration.- Returns:
this
-
storageLensArn
@Stability(Stable) public CfnStorageLens.StorageLensConfigurationProperty.Builder storageLensArn(String storageLensArn) Sets the value ofCfnStorageLens.StorageLensConfigurationProperty.getStorageLensArn()- Parameters:
storageLensArn- This property contains the details of the ARN of the S3 Storage Lens configuration. This property is read-only.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLens.StorageLensConfigurationProperty>- Returns:
- a new instance of
CfnStorageLens.StorageLensConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-