public static final class CfnBucket.MetricsProperty.Builder
extends java.lang.Object
CfnBucket.MetricsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBucket.MetricsProperty |
build()
Builds the configured instance.
|
CfnBucket.MetricsProperty.Builder |
eventThreshold(CfnBucket.ReplicationTimeValueProperty eventThreshold)
Sets the value of
CfnBucket.MetricsProperty.getEventThreshold() |
CfnBucket.MetricsProperty.Builder |
eventThreshold(IResolvable eventThreshold)
Sets the value of
CfnBucket.MetricsProperty.getEventThreshold() |
CfnBucket.MetricsProperty.Builder |
status(java.lang.String status)
Sets the value of
CfnBucket.MetricsProperty.getStatus() |
public CfnBucket.MetricsProperty.Builder status(java.lang.String status)
CfnBucket.MetricsProperty.getStatus()
status
- Specifies whether the replication metrics are enabled. This parameter is required.this
public CfnBucket.MetricsProperty.Builder eventThreshold(IResolvable eventThreshold)
CfnBucket.MetricsProperty.getEventThreshold()
eventThreshold
- A container specifying the time threshold for emitting the `s3:Replication:OperationMissedThreshold` event.this
public CfnBucket.MetricsProperty.Builder eventThreshold(CfnBucket.ReplicationTimeValueProperty eventThreshold)
CfnBucket.MetricsProperty.getEventThreshold()
eventThreshold
- A container specifying the time threshold for emitting the `s3:Replication:OperationMissedThreshold` event.this
public CfnBucket.MetricsProperty build()
CfnBucket.MetricsProperty
java.lang.NullPointerException
- if any required attribute was not provided