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 Dimensionclone()booleanequals(Object obj)StringgetName()The name of the dimension.StringgetValue()The value of the dimension.inthashCode()voidsetName(String name)The name of the dimension.voidsetValue(String value)The value of the dimension.StringtoString()Returns a string representation of this object; useful for testing and debugging.DimensionwithName(String name)The name of the dimension.DimensionwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-