public class DimensionFilter extends Object implements Serializable, Cloneable
The DimensionFilter
data type is used to filter
ListMetrics results.
Constructor and Description |
---|
DimensionFilter() |
Modifier and Type | Method and 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.
|
public void setName(String name)
The dimension name to be matched.
name
- The dimension name to be matched.public String getName()
The dimension name to be matched.
public DimensionFilter withName(String name)
The dimension name to be matched.
name
- The dimension name to be matched.public void setValue(String value)
The value of the dimension to be matched.
Name
without specifying a
Value
returns all values associated with that
Name
. value
- The value of the dimension to be matched. Name
without specifying a Value
returns
all values associated with that Name
.public String getValue()
The value of the dimension to be matched.
Name
without specifying a
Value
returns all values associated with that
Name
. Name
without specifying a Value
returns all values associated with that Name
.public DimensionFilter withValue(String value)
The value of the dimension to be matched.
Name
without specifying a
Value
returns all values associated with that
Name
. value
- The value of the dimension to be matched. Name
without specifying a Value
returns
all values associated with that Name
.public String toString()
toString
in class Object
Object.toString()
public DimensionFilter clone()
Copyright © 2016. All rights reserved.