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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DimensionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DimensionFilter
clone()
boolean
equals(Object obj)
String
getName()
The dimension name to be matched.String
getValue()
The value of the dimension to be matched.int
hashCode()
void
setName(String name)
The dimension name to be matched.void
setValue(String value)
The value of the dimension to be matched.String
toString()
Returns a string representation of this object; useful for testing and debugging.DimensionFilter
withName(String name)
The dimension name to be matched.DimensionFilter
withValue(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 Name
without specifying aValue
returns all values associated with thatName
.- Parameters:
value
- The value of the dimension to be matched.Specifying a Name
without specifying aValue
returns all values associated with thatName
.
-
getValue
public String getValue()
The value of the dimension to be matched.
Specifying a Name
without specifying aValue
returns all values associated with thatName
.- Returns:
- The value of the dimension to be matched.
Specifying a Name
without specifying aValue
returns all values associated with thatName
.
-
withValue
public DimensionFilter withValue(String value)
The value of the dimension to be matched.
Specifying a Name
without specifying aValue
returns all values associated with thatName
.- Parameters:
value
- The value of the dimension to be matched.Specifying a Name
without specifying aValue
returns 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DimensionFilter clone()
-
-