@Generated(value="software.amazon.awssdk:codegen") public final class CurrentMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>
A CurrentMetric object that contains the Name and Unit for the metric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CurrentMetric.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CurrentMetric.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
CurrentMetricName |
name()
The name of the metric.
|
String |
nameAsString()
The name of the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CurrentMetric.Builder> |
serializableBuilderClass() |
CurrentMetric.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Unit |
unit()
The unit for the metric.
|
String |
unitAsString()
The unit for the metric.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic CurrentMetricName name()
The name of the metric.
If the service returns an enum value that is not available in the current SDK version, name will return
CurrentMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
CurrentMetricNamepublic String nameAsString()
The name of the metric.
If the service returns an enum value that is not available in the current SDK version, name will return
CurrentMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
CurrentMetricNamepublic Unit unit()
The unit for the metric.
If the service returns an enum value that is not available in the current SDK version, unit will return
Unit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Unitpublic String unitAsString()
The unit for the metric.
If the service returns an enum value that is not available in the current SDK version, unit will return
Unit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Unitpublic CurrentMetric.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>public static CurrentMetric.Builder builder()
public static Class<? extends CurrentMetric.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2019. All rights reserved.