@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Metric extends Object implements Serializable, Cloneable
The representation of a metric.
Constructor and Description |
---|
Metric() |
Modifier and Type | Method and Description |
---|---|
Metric |
clone() |
boolean |
equals(Object obj) |
MetricQuery |
getMetricQuery()
The query to retrieve metric data points.
|
String |
getName()
The name of a metric.
|
List<MetricReference> |
getReferences()
A list of metric references (thresholds).
|
String |
getStatisticsDetails()
The details of different statistics for a metric.
|
int |
hashCode() |
void |
setMetricQuery(MetricQuery metricQuery)
The query to retrieve metric data points.
|
void |
setName(String name)
The name of a metric.
|
void |
setReferences(Collection<MetricReference> references)
A list of metric references (thresholds).
|
void |
setStatisticsDetails(String statisticsDetails)
The details of different statistics for a metric.
|
String |
toString()
Returns a string representation of this object.
|
Metric |
withMetricQuery(MetricQuery metricQuery)
The query to retrieve metric data points.
|
Metric |
withName(String name)
The name of a metric.
|
Metric |
withReferences(Collection<MetricReference> references)
A list of metric references (thresholds).
|
Metric |
withReferences(MetricReference... references)
A list of metric references (thresholds).
|
Metric |
withStatisticsDetails(String statisticsDetails)
The details of different statistics for a metric.
|
public void setName(String name)
The name of a metric.
name
- The name of a metric.public String getName()
The name of a metric.
public Metric withName(String name)
The name of a metric.
name
- The name of a metric.public List<MetricReference> getReferences()
A list of metric references (thresholds).
public void setReferences(Collection<MetricReference> references)
A list of metric references (thresholds).
references
- A list of metric references (thresholds).public Metric withReferences(MetricReference... references)
A list of metric references (thresholds).
NOTE: This method appends the values to the existing list (if any). Use
setReferences(java.util.Collection)
or withReferences(java.util.Collection)
if you want to
override the existing values.
references
- A list of metric references (thresholds).public Metric withReferences(Collection<MetricReference> references)
A list of metric references (thresholds).
references
- A list of metric references (thresholds).public void setStatisticsDetails(String statisticsDetails)
The details of different statistics for a metric. The description might contain markdown.
statisticsDetails
- The details of different statistics for a metric. The description might contain markdown.public String getStatisticsDetails()
The details of different statistics for a metric. The description might contain markdown.
public Metric withStatisticsDetails(String statisticsDetails)
The details of different statistics for a metric. The description might contain markdown.
statisticsDetails
- The details of different statistics for a metric. The description might contain markdown.public void setMetricQuery(MetricQuery metricQuery)
The query to retrieve metric data points.
metricQuery
- The query to retrieve metric data points.public MetricQuery getMetricQuery()
The query to retrieve metric data points.
public Metric withMetricQuery(MetricQuery metricQuery)
The query to retrieve metric data points.
metricQuery
- The query to retrieve metric data points.public String toString()
toString
in class Object
Object.toString()