Class Dimension
- java.lang.Object
-
- com.amazonaws.services.route53.model.Dimension
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Dimension extends Object implements Serializable, Cloneable
The name and value of a dimension for a CloudWatch metric.
- 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 of the dimension.int
hashCode()
void
setName(String name)
The name of the dimension.void
setValue(String value)
The value of the dimension.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 of the dimension.
-
-
-
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 of the dimension.
- Parameters:
value
- The value of the dimension.
-
getValue
public String getValue()
The value of the dimension.
- Returns:
- The value of the dimension.
-
withValue
public Dimension withValue(String value)
The value of the dimension.
- Parameters:
value
- The value of the dimension.- 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()
-
-