@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) |
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Unit |
unit()
The unit for the metric.
|
String |
unitAsString()
The unit for the metric.
|
copypublic 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>public static CurrentMetric.Builder builder()
public static Class<? extends CurrentMetric.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.