Class DimensionFilter

java.lang.Object
com.amazonaws.services.cloudwatch.model.DimensionFilter
All Implemented Interfaces:
Serializable, Cloneable

public class DimensionFilter extends Object implements Serializable, Cloneable

The DimensionFilter data type is used to filter ListMetrics results.

See Also:
  • Constructor Details

    • DimensionFilter

      public DimensionFilter()
  • Method Details

    • setName

      public void setName(String name)

      The dimension name to be matched.

      Parameters:
      name - The dimension name to be matched.
    • getName

      public String getName()

      The dimension name to be matched.

      Returns:
      The dimension name to be matched.
    • withName

      public DimensionFilter withName(String name)

      The dimension name to be matched.

      Parameters:
      name - The dimension name to be matched.
      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 to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
      Parameters:
      value - The value of the dimension to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
    • getValue

      public String getValue()

      The value of the dimension to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
      Returns:
      The value of the dimension to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
    • withValue

      public DimensionFilter withValue(String value)

      The value of the dimension to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
      Parameters:
      value - The value of the dimension to be matched.

      Specifying a Name without specifying a Value returns all values associated with that Name.
      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 DimensionFilter clone()
      Overrides:
      clone in class Object