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
DimensionFilterdata type is used to filter ListMetrics results.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DimensionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DimensionFilterclone()booleanequals(Object obj)StringgetName()The dimension name to be matched.StringgetValue()The value of the dimension to be matched.inthashCode()voidsetName(String name)The dimension name to be matched.voidsetValue(String value)The value of the dimension to be matched.StringtoString()Returns a string representation of this object; useful for testing and debugging.DimensionFilterwithName(String name)The dimension name to be matched.DimensionFilterwithValue(String value)The value of the dimension to be matched.
-
-
-
Method Detail
-
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 Namewithout specifying aValuereturns all values associated with thatName.- Parameters:
value- The value of the dimension to be matched.Specifying a Namewithout specifying aValuereturns all values associated with thatName.
-
getValue
public String getValue()
The value of the dimension to be matched.
Specifying a Namewithout specifying aValuereturns all values associated with thatName.- Returns:
- The value of the dimension to be matched.
Specifying a Namewithout specifying aValuereturns all values associated with thatName.
-
withValue
public DimensionFilter withValue(String value)
The value of the dimension to be matched.
Specifying a Namewithout specifying aValuereturns all values associated with thatName.- Parameters:
value- The value of the dimension to be matched.Specifying a Namewithout specifying aValuereturns all values associated with thatName.- 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()
-
clone
public DimensionFilter clone()
-
-