Class Dimension
- java.lang.Object
-
- com.amazonaws.services.cloudwatch.model.Dimension
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Dimension extends Object implements Serializable, Cloneable
The
Dimension
data type further expands on the identity of a metric using a Name, Value pair.For examples that use one or more dimensions, see PutMetricData.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Dimension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dimension
clone()
boolean
equals(Object obj)
String
getName()
The name of the dimension.String
getValue()
The value representing the dimension measurementint
hashCode()
void
setName(String name)
The name of the dimension.void
setValue(String value)
The value representing the dimension measurementString
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
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the dimension.
- Parameters:
name
- The name of the dimension.
-
getName
public String getName()
The name of the dimension.
- Returns:
- The name of the dimension.
-
withName
public Dimension withName(String name)
The name of the dimension.
- Parameters:
name
- The name of the dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value representing the dimension measurement
- Parameters:
value
- The value representing the dimension measurement
-
getValue
public String getValue()
The value representing the dimension measurement
- Returns:
- The value representing the dimension measurement
-
withValue
public Dimension withValue(String value)
The value representing the dimension measurement
- Parameters:
value
- The value representing the dimension measurement- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-