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:
  • Constructor Details

    • Dimension

      public Dimension()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Dimension clone()
      Overrides:
      clone in class Object