@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnabledMetric extends Object implements Serializable, Cloneable
Describes an enabled metric.
Constructor and Description |
---|
EnabledMetric() |
Modifier and Type | Method and Description |
---|---|
EnabledMetric |
clone() |
boolean |
equals(Object obj) |
String |
getGranularity()
The granularity of the metric.
|
String |
getMetric()
One of the following metrics:
|
int |
hashCode() |
void |
setGranularity(String granularity)
The granularity of the metric.
|
void |
setMetric(String metric)
One of the following metrics:
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
EnabledMetric |
withGranularity(String granularity)
The granularity of the metric.
|
EnabledMetric |
withMetric(String metric)
One of the following metrics:
|
public void setMetric(String metric)
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
metric
- One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
public String getMetric()
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
public EnabledMetric withMetric(String metric)
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
metric
- One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
public void setGranularity(String granularity)
The granularity of the metric. The only valid value is 1Minute
.
granularity
- The granularity of the metric. The only valid value is 1Minute
.public String getGranularity()
The granularity of the metric. The only valid value is 1Minute
.
1Minute
.public EnabledMetric withGranularity(String granularity)
The granularity of the metric. The only valid value is 1Minute
.
granularity
- The granularity of the metric. The only valid value is 1Minute
.public String toString()
toString
in class Object
Object.toString()
public EnabledMetric clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.