@Generated(value="software.amazon.awssdk:codegen") public final class MetricStat extends Object implements ToCopyableBuilder<MetricStat.Builder,MetricStat>
This structure defines the metric to be returned, along with the statistics, period, and units.
Modifier and Type | Class and Description |
---|---|
static interface |
MetricStat.Builder |
Modifier and Type | Method and Description |
---|---|
static MetricStat.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Metric |
metric()
The metric to return, including the metric name, namespace, and dimensions.
|
Integer |
period()
The period to use when retrieving the metric.
|
static Class<? extends MetricStat.Builder> |
serializableBuilderClass() |
String |
stat()
The statistic to return.
|
MetricStat.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
StandardUnit |
unit()
The unit to use for the returned data points.
|
String |
unitAsString()
The unit to use for the returned data points.
|
copy
public Metric metric()
The metric to return, including the metric name, namespace, and dimensions.
public Integer period()
The period to use when retrieving the metric.
public String stat()
The statistic to return. It can include any CloudWatch statistic or extended statistic.
public StandardUnit unit()
The unit to use for the returned data points.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public String unitAsString()
The unit to use for the returned data points.
If the service returns an enum value that is not available in the current SDK version, unit
will return
StandardUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
StandardUnit
public MetricStat.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricStat.Builder,MetricStat>
public static MetricStat.Builder builder()
public static Class<? extends MetricStat.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.