Class CfnStorageLens.CloudWatchMetricsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnStorageLens.CloudWatchMetricsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStorageLens.CloudWatchMetricsProperty>
- Enclosing interface:
CfnStorageLens.CloudWatchMetricsProperty
@Stability(Stable)
public static final class CfnStorageLens.CloudWatchMetricsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStorageLens.CloudWatchMetricsProperty>
A builder for
CfnStorageLens.CloudWatchMetricsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnStorageLens.CloudWatchMetricsProperty.getIsEnabled()
isEnabled
(IResolvable isEnabled) Sets the value ofCfnStorageLens.CloudWatchMetricsProperty.getIsEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isEnabled
@Stability(Stable) public CfnStorageLens.CloudWatchMetricsProperty.Builder isEnabled(Boolean isEnabled) Sets the value ofCfnStorageLens.CloudWatchMetricsProperty.getIsEnabled()
- Parameters:
isEnabled
- This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled. This parameter is required.- Returns:
this
-
isEnabled
@Stability(Stable) public CfnStorageLens.CloudWatchMetricsProperty.Builder isEnabled(IResolvable isEnabled) Sets the value ofCfnStorageLens.CloudWatchMetricsProperty.getIsEnabled()
- Parameters:
isEnabled
- This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStorageLens.CloudWatchMetricsProperty>
- Returns:
- a new instance of
CfnStorageLens.CloudWatchMetricsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-