Class CfnBucket.MetricsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.MetricsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.MetricsConfigurationProperty>
- Enclosing interface:
CfnBucket.MetricsConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.MetricsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.MetricsConfigurationProperty>
A builder for
CfnBucket.MetricsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPointArn
(String accessPointArn) Sets the value ofCfnBucket.MetricsConfigurationProperty.getAccessPointArn()
build()
Builds the configured instance.Sets the value ofCfnBucket.MetricsConfigurationProperty.getId()
Sets the value ofCfnBucket.MetricsConfigurationProperty.getPrefix()
tagFilters
(List<? extends Object> tagFilters) Sets the value ofCfnBucket.MetricsConfigurationProperty.getTagFilters()
tagFilters
(IResolvable tagFilters) Sets the value ofCfnBucket.MetricsConfigurationProperty.getTagFilters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnBucket.MetricsConfigurationProperty.getId()
- Parameters:
id
- The ID used to identify the metrics configuration. This parameter is required. This can be any value you choose that helps you identify your metrics configuration.- Returns:
this
-
accessPointArn
@Stability(Stable) public CfnBucket.MetricsConfigurationProperty.Builder accessPointArn(String accessPointArn) Sets the value ofCfnBucket.MetricsConfigurationProperty.getAccessPointArn()
- Parameters:
accessPointArn
- The access point that was used while performing operations on the object. The metrics configuration only includes objects that meet the filter's criteria.- Returns:
this
-
prefix
Sets the value ofCfnBucket.MetricsConfigurationProperty.getPrefix()
- Parameters:
prefix
- The prefix that an object must have to be included in the metrics results.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.MetricsConfigurationProperty.Builder tagFilters(IResolvable tagFilters) Sets the value ofCfnBucket.MetricsConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.MetricsConfigurationProperty.Builder tagFilters(List<? extends Object> tagFilters) Sets the value ofCfnBucket.MetricsConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.MetricsConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.MetricsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-