com.amazonaws.services.cloudwatch.model
Class Metric

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.Metric

public class Metric
extends Object

The Metric data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information contained by this data type.


Constructor Summary
Metric()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Dimension> getDimensions()
          A list of dimensions associated with the metric.
 String getMetricName()
          The name of the metric.
 String getNamespace()
          The namespace of the metric.
 int hashCode()
           
 void setDimensions(Collection<Dimension> dimensions)
          A list of dimensions associated with 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; useful for testing and debugging.
 Metric withDimensions(Collection<Dimension> dimensions)
          A list of dimensions associated with the metric.
 Metric withDimensions(Dimension... dimensions)
          A list of dimensions associated with the metric.
 Metric withMetricName(String metricName)
          The name of the metric.
 Metric withNamespace(String namespace)
          The namespace of the metric.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metric

public Metric()
Method Detail

getNamespace

public String getNamespace()
The namespace of the metric.

Constraints:
Length: 1 - 255
Pattern: [^:].*

Returns:
The namespace of the metric.

setNamespace

public void setNamespace(String namespace)
The namespace of the metric.

Constraints:
Length: 1 - 255
Pattern: [^:].*

Parameters:
namespace - The namespace of the metric.

withNamespace

public Metric withNamespace(String namespace)
The namespace of the metric.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [^:].*

Parameters:
namespace - The namespace of the metric.
Returns:
A reference to this updated object so that method calls can be chained together.

getMetricName

public String getMetricName()
The name of the metric.

Constraints:
Length: 1 - 255

Returns:
The name of the metric.

setMetricName

public void setMetricName(String metricName)
The name of the metric.

Constraints:
Length: 1 - 255

Parameters:
metricName - The name of the metric.

withMetricName

public Metric withMetricName(String metricName)
The name of the metric.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

Parameters:
metricName - The name of the metric.
Returns:
A reference to this updated object so that method calls can be chained together.

getDimensions

public List<Dimension> getDimensions()
A list of dimensions associated with the metric.

Constraints:
Length: 0 - 10

Returns:
A list of dimensions associated with the metric.

setDimensions

public void setDimensions(Collection<Dimension> dimensions)
A list of dimensions associated with the metric.

Constraints:
Length: 0 - 10

Parameters:
dimensions - A list of dimensions associated with the metric.

withDimensions

public Metric withDimensions(Dimension... dimensions)
A list of dimensions associated with the metric.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10

Parameters:
dimensions - A list of dimensions associated with the metric.
Returns:
A reference to this updated object so that method calls can be chained together.

withDimensions

public Metric withDimensions(Collection<Dimension> dimensions)
A list of dimensions associated with the metric.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10

Parameters:
dimensions - A list of dimensions associated with the metric.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.