public class Dimension
extends java.lang.Object
implements java.io.Serializable
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.
| Constructor and Description |
|---|
Dimension() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the dimension.
|
java.lang.String |
getValue()
The value representing the dimension measurement
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the dimension.
|
void |
setValue(java.lang.String value)
The value representing the dimension measurement
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Dimension |
withName(java.lang.String name)
The name of the dimension.
|
Dimension |
withValue(java.lang.String value)
The value representing the dimension measurement
|
public java.lang.String getName()
The name of the dimension.
Constraints:
Length: 1 - 255
The name of the dimension.
public void setName(java.lang.String name)
The name of the dimension.
Constraints:
Length: 1 - 255
name - The name of the dimension.
public Dimension withName(java.lang.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
name - The name of the dimension.
public java.lang.String getValue()
The value representing the dimension measurement
Constraints:
Length: 1 - 255
The value representing the dimension measurement
public void setValue(java.lang.String value)
The value representing the dimension measurement
Constraints:
Length: 1 - 255
value - The value representing the dimension measurement
public Dimension withValue(java.lang.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
value - The value representing the dimension measurement
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.