Class HistoricalMetric
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.HistoricalMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHistoricalMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HistoricalMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HistoricalMetricNamename()The name of the metric.StringnameAsString()The name of the metric.List<SdkField<?>>sdkFields()static Class<? extends HistoricalMetric.Builder>serializableBuilderClass()Statisticstatistic()The statistic for the metric.StringstatisticAsString()The statistic for the metric.Thresholdthreshold()The threshold for the metric, used with service level metrics.HistoricalMetric.BuildertoBuilder()StringtoString()Returns a string representation of this object.Unitunit()The unit for the metric.StringunitAsString()The unit for the metric.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final HistoricalMetricName name()
The name of the metric.
If the service returns an enum value that is not available in the current SDK version,
namewill returnHistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the metric.
- See Also:
HistoricalMetricName
-
nameAsString
public final String nameAsString()
The name of the metric.
If the service returns an enum value that is not available in the current SDK version,
namewill returnHistoricalMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the metric.
- See Also:
HistoricalMetricName
-
threshold
public final Threshold threshold()
The threshold for the metric, used with service level metrics.
- Returns:
- The threshold for the metric, used with service level metrics.
-
statistic
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,
statisticwill returnStatistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatisticAsString().- Returns:
- The statistic for the metric.
- See Also:
Statistic
-
statisticAsString
public final String statisticAsString()
The statistic for the metric.
If the service returns an enum value that is not available in the current SDK version,
statisticwill returnStatistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatisticAsString().- Returns:
- The statistic for the metric.
- See Also:
Statistic
-
unit
public final Unit unit()
The unit for the metric.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit for the metric.
- See Also:
Unit
-
unitAsString
public final String unitAsString()
The unit for the metric.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit for the metric.
- See Also:
Unit
-
toBuilder
public HistoricalMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
-
builder
public static HistoricalMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends HistoricalMetric.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-