@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricToRetain extends Object implements Serializable, Cloneable, StructuredPojo
The metric you want to retain. Dimensions are optional.
| Constructor and Description |
|---|
MetricToRetain() |
| Modifier and Type | Method and Description |
|---|---|
MetricToRetain |
clone() |
boolean |
equals(Object obj) |
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setMetric(String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricToRetain |
withMetric(String metric)
What is measured by the behavior.
|
MetricToRetain |
withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
public void setMetric(String metric)
What is measured by the behavior.
metric - What is measured by the behavior.public String getMetric()
What is measured by the behavior.
public MetricToRetain withMetric(String metric)
What is measured by the behavior.
metric - What is measured by the behavior.public void setMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension - The dimension of a metric. This can't be used with custom metrics.public MetricDimension getMetricDimension()
The dimension of a metric. This can't be used with custom metrics.
public MetricToRetain withMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension - The dimension of a metric. This can't be used with custom metrics.public String toString()
toString in class ObjectObject.toString()public MetricToRetain clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.