com.amazonaws.services.cloudwatch.model
Class DimensionFilter

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.DimensionFilter

public class DimensionFilter
extends Object

The DimensionFilter data type is used to filter ListMetrics results.


Constructor Summary
DimensionFilter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimensionFilter

public DimensionFilter()
Method Detail

getName

public String getName()
The dimension name to be matched.

Constraints:
Length: 1 - 255

Returns:
The dimension name to be matched.

setName

public void setName(String name)
The dimension name to be matched.

Constraints:
Length: 1 - 255

Parameters:
name - The dimension name to be matched.

withName

public DimensionFilter withName(String name)
The dimension name to be matched.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

Parameters:
name - The dimension name to be matched.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

Constraints:
Length: 1 - 255

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

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.

Constraints:
Length: 1 - 255

Parameters:
value - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

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:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.