@Generated(value="software.amazon.awssdk:codegen") public final class HistoricalMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
Contains information about a historical metric. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HistoricalMetric.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HistoricalMetric.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HistoricalMetricName |
name()
The name of the metric.
|
String |
nameAsString()
The name of the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HistoricalMetric.Builder> |
serializableBuilderClass() |
Statistic |
statistic()
The statistic for the metric.
|
String |
statisticAsString()
The statistic for the metric.
|
Threshold |
threshold()
The threshold for the metric, used with service level metrics.
|
HistoricalMetric.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Unit |
unit()
The unit for the metric.
|
String |
unitAsString()
The unit for the metric.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final HistoricalMetricName 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
HistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
HistoricalMetricNamepublic final 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
HistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
HistoricalMetricNamepublic final Threshold threshold()
The threshold for the metric, used with service level metrics.
public final Statistic statistic()
The statistic for the metric.
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 final String statisticAsString()
The statistic for the metric.
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 final 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 final 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 HistoricalMetric.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>public static HistoricalMetric.Builder builder()
public static Class<? extends HistoricalMetric.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.