Class CfnStorageLensPropsMixin.BucketsAndRegionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnStorageLensPropsMixin.BucketsAndRegionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLensPropsMixin.BucketsAndRegionsProperty>
- Enclosing interface:
CfnStorageLensPropsMixin.BucketsAndRegionsProperty
@Stability(Stable)
public static final class CfnStorageLensPropsMixin.BucketsAndRegionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLensPropsMixin.BucketsAndRegionsProperty>
A builder for
CfnStorageLensPropsMixin.BucketsAndRegionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnStorageLensPropsMixin.BucketsAndRegionsProperty.getBuckets()build()Builds the configured instance.Sets the value ofCfnStorageLensPropsMixin.BucketsAndRegionsProperty.getRegions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buckets
@Stability(Stable) public CfnStorageLensPropsMixin.BucketsAndRegionsProperty.Builder buckets(List<String> buckets) Sets the value ofCfnStorageLensPropsMixin.BucketsAndRegionsProperty.getBuckets()- Parameters:
buckets- This property contains the details of the buckets for the Amazon S3 Storage Lens configuration. This should be the bucket Amazon Resource Name(ARN). For valid values, see Buckets ARN format here in the Amazon S3 API Reference .- Returns:
this
-
regions
@Stability(Stable) public CfnStorageLensPropsMixin.BucketsAndRegionsProperty.Builder regions(List<String> regions) Sets the value ofCfnStorageLensPropsMixin.BucketsAndRegionsProperty.getRegions()- Parameters:
regions- This property contains the details of the Regions for the S3 Storage Lens configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStorageLensPropsMixin.BucketsAndRegionsProperty>- Returns:
- a new instance of
CfnStorageLensPropsMixin.BucketsAndRegionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-