@Generated(value="software.amazon.awssdk:codegen") public final class Metrics extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Metrics.Builder,Metrics>
A container specifying replication metrics-related settings enabling metrics and Amazon S3 events for S3 Replication
Time Control (S3 RTC). Must be specified together with a ReplicationTime
block.
Modifier and Type | Class and Description |
---|---|
static interface |
Metrics.Builder |
Modifier and Type | Method and Description |
---|---|
static Metrics.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ReplicationTimeValue |
eventThreshold()
A container specifying the time threshold for emitting the
s3:Replication:OperationMissedThreshold
event. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Metrics.Builder> |
serializableBuilderClass() |
MetricsStatus |
status()
Specifies whether the replication metrics are enabled.
|
String |
statusAsString()
Specifies whether the replication metrics are enabled.
|
Metrics.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public MetricsStatus status()
Specifies whether the replication metrics are enabled.
If the service returns an enum value that is not available in the current SDK version, status
will
return MetricsStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
MetricsStatus
public String statusAsString()
Specifies whether the replication metrics are enabled.
If the service returns an enum value that is not available in the current SDK version, status
will
return MetricsStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
MetricsStatus
public ReplicationTimeValue eventThreshold()
A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold
event.
s3:Replication:OperationMissedThreshold
event.public Metrics.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Metrics.Builder,Metrics>
public static Metrics.Builder builder()
public static Class<? extends Metrics.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.