com.amazonaws.services.autoscaling.model
Class EnabledMetric

java.lang.Object
  extended by com.amazonaws.services.autoscaling.model.EnabledMetric

public class EnabledMetric
extends Object

The EnabledMetric data type.


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

Constructor Detail

EnabledMetric

public EnabledMetric()
Method Detail

getMetric

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of the enabled metric.

setMetric

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
metric - The name of the enabled metric.

withMetric

public EnabledMetric withMetric(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: [ -??-??-?\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 String getGranularity()
The granularity of the enabled metric.

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Returns:
The granularity of the enabled metric.

setGranularity

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

Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*

Parameters:
granularity - The granularity of the enabled metric.

withGranularity

public EnabledMetric withGranularity(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: [ -??-??-?\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 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()


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