public class MetricToRetain
extends java.lang.Object
implements java.io.Serializable
The metric you want to retain. Dimensions are optional.
| Constructor and Description |
|---|
MetricToRetain() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
void |
setMetric(java.lang.String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricToRetain |
withMetric(java.lang.String metric)
What is measured by the behavior.
|
MetricToRetain |
withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
public java.lang.String getMetric()
What is measured by the behavior.
What is measured by the behavior.
public void setMetric(java.lang.String metric)
What is measured by the behavior.
metric - What is measured by the behavior.
public MetricToRetain withMetric(java.lang.String metric)
What is measured by the behavior.
Returns a reference to this object so that method calls can be chained together.
metric - What is measured by the behavior.
public MetricDimension getMetricDimension()
The dimension of a metric. This can't be used with custom metrics.
The dimension of a metric. This can't be used with custom metrics.
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 MetricToRetain withMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
Returns a reference to this object so that method calls can be chained together.
metricDimension - The dimension of a metric. This can't be used with custom metrics.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.