@Generated(value="software.amazon.awssdk:codegen") public final class HistoricalMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold for the metric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HistoricalMetric.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HistoricalMetric.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HistoricalMetricName |
name()
The name of the historical metric.
|
String |
nameAsString()
The name of the historical metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HistoricalMetric.Builder> |
serializableBuilderClass() |
Statistic |
statistic()
The statistic for the metric: SUM, MAX, or SUM.
|
String |
statisticAsString()
The statistic for the metric: SUM, MAX, or SUM.
|
Threshold |
threshold()
The threshold for the metric, used with service level metrics.
|
HistoricalMetric.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: COUNT, PERCENT, or SECONDS.
|
String |
unitAsString()
The unit for the metric: COUNT, PERCENT, or SECONDS.
|
copypublic HistoricalMetricName name()
The name of the historical metric.
If the service returns an enum value that is not available in the current SDK version, name will return
HistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
HistoricalMetricNamepublic String nameAsString()
The name of the historical metric.
If the service returns an enum value that is not available in the current SDK version, name will return
HistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
HistoricalMetricNamepublic Threshold threshold()
The threshold for the metric, used with service level metrics.
public Statistic statistic()
The statistic for the metric: SUM, MAX, or SUM.
If the service returns an enum value that is not available in the current SDK version, statistic will
return Statistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
Statisticpublic String statisticAsString()
The statistic for the metric: SUM, MAX, or SUM.
If the service returns an enum value that is not available in the current SDK version, statistic will
return Statistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statisticAsString().
Statisticpublic Unit unit()
The unit for the metric: COUNT, PERCENT, or SECONDS.
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: COUNT, PERCENT, or SECONDS.
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 HistoricalMetric.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>public static HistoricalMetric.Builder builder()
public static Class<? extends HistoricalMetric.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.