com.amazonaws.services.autoscaling.model
Class EnabledMetric

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

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

The EnabledMetric data type.

See Also:
Serialized Form

Constructor Summary
EnabledMetric()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGranularity()
          The granularity of the enabled metric.
 java.lang.String getMetric()
          The name of the enabled metric.
 int hashCode()
           
 void setGranularity(java.lang.String granularity)
          The granularity of the enabled metric.
 void setMetric(java.lang.String metric)
          The name of the enabled metric.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EnabledMetric withGranularity(java.lang.String granularity)
          The granularity of the enabled metric.
 EnabledMetric withMetric(java.lang.String metric)
          The name of the enabled metric.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnabledMetric

public EnabledMetric()
Method Detail

getMetric

public java.lang.String getMetric()
The name of the enabled metric.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of the enabled metric.

setMetric

public void setMetric(java.lang.String metric)
The name of the enabled metric.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
metric - The name of the enabled metric.

withMetric

public EnabledMetric withMetric(java.lang.String metric)
The name of the enabled metric.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
metric - The name of the enabled metric.
Returns:
A reference to this updated object so that method calls can be chained together.

getGranularity

public java.lang.String getGranularity()
The granularity of the enabled metric.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The granularity of the enabled metric.

setGranularity

public void setGranularity(java.lang.String granularity)
The granularity of the enabled metric.

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
granularity - The granularity of the enabled metric.

withGranularity

public EnabledMetric withGranularity(java.lang.String granularity)
The granularity of the enabled metric.

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

Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
granularity - The granularity of the enabled metric.
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.