Class CfnStorageLensProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLensProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLensProps>
- Enclosing interface:
CfnStorageLensProps
@Stability(Stable)
public static final class CfnStorageLensProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLensProps>
A builder for
CfnStorageLensProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.storageLensConfiguration
(IResolvable storageLensConfiguration) Sets the value ofCfnStorageLensProps.getStorageLensConfiguration()
storageLensConfiguration
(CfnStorageLens.StorageLensConfigurationProperty storageLensConfiguration) Sets the value ofCfnStorageLensProps.getStorageLensConfiguration()
Sets the value ofCfnStorageLensProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageLensConfiguration
@Stability(Stable) public CfnStorageLensProps.Builder storageLensConfiguration(IResolvable storageLensConfiguration) Sets the value ofCfnStorageLensProps.getStorageLensConfiguration()
- Parameters:
storageLensConfiguration
- This resource contains the details Amazon S3 Storage Lens configuration. This parameter is required.- Returns:
this
-
storageLensConfiguration
@Stability(Stable) public CfnStorageLensProps.Builder storageLensConfiguration(CfnStorageLens.StorageLensConfigurationProperty storageLensConfiguration) Sets the value ofCfnStorageLensProps.getStorageLensConfiguration()
- Parameters:
storageLensConfiguration
- This resource contains the details Amazon S3 Storage Lens configuration. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnStorageLensProps.getTags()
- Parameters:
tags
- A set of tags (key–value pairs) to associate with the Storage Lens configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStorageLensProps>
- Returns:
- a new instance of
CfnStorageLensProps
- Throws:
NullPointerException
- if any required attribute was not provided
-