public class EnabledMetric
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an enabled metric.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
granularity
The granularity of the metric.
|
private java.lang.String |
metric
One of the following metrics:
|
Constructor and Description |
---|
EnabledMetric() |
Modifier and Type | Method and Description |
---|---|
EnabledMetric |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGranularity()
The granularity of the metric.
|
java.lang.String |
getMetric()
One of the following metrics:
|
int |
hashCode() |
void |
setGranularity(java.lang.String granularity)
The granularity of the metric.
|
void |
setMetric(java.lang.String metric)
One of the following metrics:
|
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 metric.
|
EnabledMetric |
withMetric(java.lang.String metric)
One of the following metrics:
|
private java.lang.String metric
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
private java.lang.String granularity
The granularity of the metric. The only valid value is
1Minute
.
public void setMetric(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getGranularity()
The granularity of the metric. The only valid value is
1Minute
.
1Minute
.public EnabledMetric withGranularity(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EnabledMetric clone()
clone
in class java.lang.Object