com.amazonaws.services.cloudwatch.model
Class Dimension

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

public class Dimension
extends Object

The Dimension data type further expands on the identity of a metric using a Name, Value pair.


Constructor Summary
Dimension()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          The name of the dimension.
 String getValue()
          The value representing the dimension measurement
 int hashCode()
           
 void setName(String name)
          The name of the dimension.
 void setValue(String value)
          The value representing the dimension measurement
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Dimension withName(String name)
          The name of the dimension.
 Dimension withValue(String value)
          The value representing the dimension measurement
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dimension

public Dimension()
Method Detail

getName

public String getName()
The name of the dimension.

Constraints:
Length: 1 - 255

Returns:
The name of the dimension.

setName

public void setName(String name)
The name of the dimension.

Constraints:
Length: 1 - 255

Parameters:
name - The name of the dimension.

withName

public Dimension withName(String name)
The name of the dimension.

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

Constraints:
Length: 1 - 255

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

getValue

public String getValue()
The value representing the dimension measurement

Constraints:
Length: 1 - 255

Returns:
The value representing the dimension measurement

setValue

public void setValue(String value)
The value representing the dimension measurement

Constraints:
Length: 1 - 255

Parameters:
value - The value representing the dimension measurement

withValue

public Dimension withValue(String value)
The value representing the dimension measurement

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

Constraints:
Length: 1 - 255

Parameters:
value - The value representing the dimension measurement
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.