Class MetricValue
java.lang.Object
software.amazon.awssdk.services.ec2.model.MetricValue
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricValue.Builder,MetricValue>
@Generated("software.amazon.awssdk:codegen")
public final class MetricValue
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<MetricValue.Builder,MetricValue>
Represents a single metric value with its associated statistic, such as the sum or average of unused capacity hours.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricValue.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Metricmetric()The name of the metric.final StringThe name of the metric.static Class<? extends MetricValue.Builder>final StringtoString()Returns a string representation of this object.final Doublevalue()The numerical value of the metric for the specified statistic and time period.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
metric
The name of the metric.
If the service returns an enum value that is not available in the current SDK version,
metricwill returnMetric.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricAsString().- Returns:
- The name of the metric.
- See Also:
-
metricAsString
The name of the metric.
If the service returns an enum value that is not available in the current SDK version,
metricwill returnMetric.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricAsString().- Returns:
- The name of the metric.
- See Also:
-
value
The numerical value of the metric for the specified statistic and time period.
- Returns:
- The numerical value of the metric for the specified statistic and time period.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricValue.Builder,MetricValue>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-