public class Metrics extends Object implements Serializable
Constructor and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
ReplicationTimeValue |
getEventThreshold()
Return A container specifying the time threshold for emitting the
s3:Replication:OperationMissedThreshold event. |
String |
getStatus()
Return whether the replication metrics are enabled.
|
void |
setEventThreshold(ReplicationTimeValue eventThreshold)
set the container specifying the time threshold for emitting the
s3:Replication:OperationMissedThreshold event. |
void |
setStatus(MetricsStatus status)
Set whether the replication metrics are enabled.
|
void |
setStatus(String status)
Set whether the replication metrics are enabled.
|
Metrics |
withEventThreshold(ReplicationTimeValue eventThreshold)
set the container specifying the time threshold for emitting the
s3:Replication:OperationMissedThreshold event. |
Metrics |
withStatus(MetricsStatus status)
Set whether the replication metrics are enabled.
|
Metrics |
withStatus(String status)
Set whether the replication metrics are enabled.
|
public String getStatus()
public Metrics withStatus(MetricsStatus status)
status
- The status.public Metrics withStatus(String status)
status
- The status.public void setStatus(MetricsStatus status)
status
- The status.public void setStatus(String status)
status
- The status.public ReplicationTimeValue getEventThreshold()
s3:Replication:OperationMissedThreshold
event.public Metrics withEventThreshold(ReplicationTimeValue eventThreshold)
s3:Replication:OperationMissedThreshold
event.eventThreshold
- The event threshold.public void setEventThreshold(ReplicationTimeValue eventThreshold)
s3:Replication:OperationMissedThreshold
event.eventThreshold
- The event threshold.