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