public class DimensionFilter extends Object implements Serializable
The DimensionFilter data type is used to filter
ListMetrics results.
| Constructor and Description |
|---|
DimensionFilter() |
| Modifier and Type | Method and Description |
|---|---|
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 String getName()
Constraints:
Length: 1 - 255
public void setName(String name)
Constraints:
Length: 1 - 255
name - The dimension name to be matched.public DimensionFilter withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
name - The dimension name to be matched.public String getValue()
Name without specifying a Value returns all
values associated with that Name.
Constraints:
Length: 1 - 255
Name without specifying a Value returns all
values associated with that Name. public void setValue(String value)
Name without specifying a Value returns all
values associated with that Name.
Constraints:
Length: 1 - 255
value - The value of the dimension to be matched. Name without specifying a Value returns all
values associated with that Name. public DimensionFilter withValue(String value)
Name without specifying a Value returns all
values associated with that Name. Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
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 ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.