@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Metric extends Object implements Serializable, Cloneable
Represents a specific metric.
Constructor and Description |
---|
Metric() |
Modifier and Type | Method and Description |
---|---|
Metric |
clone() |
boolean |
equals(Object obj) |
List<Dimension> |
getDimensions()
The dimensions for the metric.
|
String |
getMetricName()
The name of the metric.
|
String |
getNamespace()
The namespace of the metric.
|
int |
hashCode() |
void |
setDimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
|
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setNamespace(String namespace)
The namespace of the metric.
|
String |
toString()
Returns a string representation of this object.
|
Metric |
withDimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
|
Metric |
withDimensions(Dimension... dimensions)
The dimensions for the metric.
|
Metric |
withMetricName(String metricName)
The name of the metric.
|
Metric |
withNamespace(String namespace)
The namespace of the metric.
|
public void setNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public String getNamespace()
The namespace of the metric.
public Metric withNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public void setMetricName(String metricName)
The name of the metric. This is a required field.
metricName
- The name of the metric. This is a required field.public String getMetricName()
The name of the metric. This is a required field.
public Metric withMetricName(String metricName)
The name of the metric. This is a required field.
metricName
- The name of the metric. This is a required field.public List<Dimension> getDimensions()
The dimensions for the metric.
public void setDimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
dimensions
- The dimensions for the metric.public Metric withDimensions(Dimension... dimensions)
The dimensions for the metric.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions for the metric.public Metric withDimensions(Collection<Dimension> dimensions)
The dimensions for the metric.
dimensions
- The dimensions for the metric.public String toString()
toString
in class Object
Object.toString()
Copyright © 2024. All rights reserved.