Class MetricToRetain
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.MetricToRetain
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricToRetain.Builder,MetricToRetain>
@Generated("software.amazon.awssdk:codegen") public final class MetricToRetain extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricToRetain.Builder,MetricToRetain>
The metric you want to retain. Dimensions are optional.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricToRetain.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricToRetain.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)BooleanexportMetric()The value indicates exporting metrics related to theMetricToRetainwhen it's true.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmetric()What is measured by the behavior.MetricDimensionmetricDimension()The dimension of a metric.List<SdkField<?>>sdkFields()static Class<? extends MetricToRetain.Builder>serializableBuilderClass()MetricToRetain.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
metric
public final String metric()
What is measured by the behavior.
- Returns:
- What is measured by the behavior.
-
metricDimension
public final MetricDimension metricDimension()
The dimension of a metric. This can't be used with custom metrics.
- Returns:
- The dimension of a metric. This can't be used with custom metrics.
-
exportMetric
public final Boolean exportMetric()
The value indicates exporting metrics related to the
MetricToRetainwhen it's true.- Returns:
- The value indicates exporting metrics related to the
MetricToRetainwhen it's true.
-
toBuilder
public MetricToRetain.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricToRetain.Builder,MetricToRetain>
-
builder
public static MetricToRetain.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricToRetain.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.
-
-