Class CfnBucketPropsMixin.MetricsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.MetricsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.MetricsProperty>
- Enclosing interface:
CfnBucketPropsMixin.MetricsProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.MetricsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.MetricsProperty>
A builder for
CfnBucketPropsMixin.MetricsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventThreshold(CfnBucketPropsMixin.ReplicationTimeValueProperty eventThreshold) Sets the value ofCfnBucketPropsMixin.MetricsProperty.getEventThreshold()eventThreshold(IResolvable eventThreshold) Sets the value ofCfnBucketPropsMixin.MetricsProperty.getEventThreshold()Sets the value ofCfnBucketPropsMixin.MetricsProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventThreshold
@Stability(Stable) public CfnBucketPropsMixin.MetricsProperty.Builder eventThreshold(IResolvable eventThreshold) Sets the value ofCfnBucketPropsMixin.MetricsProperty.getEventThreshold()- Parameters:
eventThreshold- A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.- Returns:
this
-
eventThreshold
@Stability(Stable) public CfnBucketPropsMixin.MetricsProperty.Builder eventThreshold(CfnBucketPropsMixin.ReplicationTimeValueProperty eventThreshold) Sets the value ofCfnBucketPropsMixin.MetricsProperty.getEventThreshold()- Parameters:
eventThreshold- A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.- Returns:
this
-
status
Sets the value ofCfnBucketPropsMixin.MetricsProperty.getStatus()- Parameters:
status- Specifies whether the replication metrics are enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.MetricsProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.MetricsProperty - Throws:
NullPointerException- if any required attribute was not provided
-