@Generated(value="software.amazon.awssdk:codegen") public final class Metric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Metric.Builder,Metric>
A calculation made by contrasting a measure and a dimension from your source data.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Metric.Builder |
| Modifier and Type | Method and Description |
|---|---|
AggregationFunction |
aggregationFunction()
The function with which the metric is calculated.
|
String |
aggregationFunctionAsString()
The function with which the metric is calculated.
|
static Metric.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricName()
The name of the metric.
|
String |
namespace()
The namespace for the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Metric.Builder> |
serializableBuilderClass() |
Metric.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String metricName()
The name of the metric.
public final AggregationFunction aggregationFunction()
The function with which the metric is calculated.
If the service returns an enum value that is not available in the current SDK version,
aggregationFunction will return AggregationFunction.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from aggregationFunctionAsString().
AggregationFunctionpublic final String aggregationFunctionAsString()
The function with which the metric is calculated.
If the service returns an enum value that is not available in the current SDK version,
aggregationFunction will return AggregationFunction.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from aggregationFunctionAsString().
AggregationFunctionpublic final String namespace()
The namespace for the metric.
public Metric.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Metric.Builder,Metric>public static Metric.Builder builder()
public static Class<? extends Metric.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.