Class CurrentMetric
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.CurrentMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>
@Generated("software.amazon.awssdk:codegen") public final class CurrentMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>
Contains information about a real-time metric. For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCurrentMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CurrentMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CurrentMetricNamename()The name of the metric.StringnameAsString()The name of the metric.List<SdkField<?>>sdkFields()static Class<? extends CurrentMetric.Builder>serializableBuilderClass()CurrentMetric.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 CurrentMetricName name()
The name of the metric.
If the service returns an enum value that is not available in the current SDK version,
namewill returnCurrentMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the metric.
- See Also:
CurrentMetricName
-
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 returnCurrentMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the metric.
- See Also:
CurrentMetricName
-
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 CurrentMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CurrentMetric.Builder,CurrentMetric>
-
builder
public static CurrentMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends CurrentMetric.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.
-
-