Class CfnBucket.AnalyticsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.AnalyticsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.AnalyticsConfigurationProperty>
- Enclosing interface:
CfnBucket.AnalyticsConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.AnalyticsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.AnalyticsConfigurationProperty>
A builder for
CfnBucket.AnalyticsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getId()
Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getPrefix()
storageClassAnalysis
(IResolvable storageClassAnalysis) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getStorageClassAnalysis()
storageClassAnalysis
(CfnBucket.StorageClassAnalysisProperty storageClassAnalysis) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getStorageClassAnalysis()
tagFilters
(List<? extends Object> tagFilters) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getTagFilters()
tagFilters
(IResolvable tagFilters) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getTagFilters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getId()
- Parameters:
id
- The ID that identifies the analytics configuration. This parameter is required.- Returns:
this
-
storageClassAnalysis
@Stability(Stable) public CfnBucket.AnalyticsConfigurationProperty.Builder storageClassAnalysis(IResolvable storageClassAnalysis) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getStorageClassAnalysis()
- Parameters:
storageClassAnalysis
- Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. This parameter is required.- Returns:
this
-
storageClassAnalysis
@Stability(Stable) public CfnBucket.AnalyticsConfigurationProperty.Builder storageClassAnalysis(CfnBucket.StorageClassAnalysisProperty storageClassAnalysis) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getStorageClassAnalysis()
- Parameters:
storageClassAnalysis
- Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. This parameter is required.- Returns:
this
-
prefix
Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getPrefix()
- Parameters:
prefix
- The prefix that an object must have to be included in the analytics results.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.AnalyticsConfigurationProperty.Builder tagFilters(IResolvable tagFilters) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- The tags to use when evaluating an analytics filter. The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.AnalyticsConfigurationProperty.Builder tagFilters(List<? extends Object> tagFilters) Sets the value ofCfnBucket.AnalyticsConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- The tags to use when evaluating an analytics filter. The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.AnalyticsConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.AnalyticsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-