com.amazonaws.services.cloudwatch.model
Class DimensionFilter

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.DimensionFilter
All Implemented Interfaces:
java.io.Serializable

public class DimensionFilter
extends java.lang.Object
implements java.io.Serializable

The DimensionFilter data type is used to filter ListMetrics results.

See Also:
Serialized Form

Constructor Summary
DimensionFilter()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          The dimension name to be matched.
 java.lang.String getValue()
          The value of the dimension to be matched.
 int hashCode()
           
 void setName(java.lang.String name)
          The dimension name to be matched.
 void setValue(java.lang.String value)
          The value of the dimension to be matched.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DimensionFilter withName(java.lang.String name)
          The dimension name to be matched.
 DimensionFilter withValue(java.lang.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 java.lang.String getName()
The dimension name to be matched.

Constraints:
Length: 1 - 255

Returns:
The dimension name to be matched.

setName

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

Constraints:
Length: 1 - 255

Parameters:
name - The dimension name to be matched.

withName

public DimensionFilter withName(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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