public class EnabledMetric
extends java.lang.Object
implements java.io.Serializable
Describes an enabled metric.
Constructor and Description |
---|
EnabledMetric() |
Modifier and Type | Method and Description |
---|---|
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:
|
public java.lang.String getMetric()
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
public void setMetric(java.lang.String metric)
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
metric
- One of the following metrics:
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
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
metric
- One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
public java.lang.String getGranularity()
The granularity of the metric. The only valid value is
1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The granularity of the metric. The only valid value is
1Minute
.
public void setGranularity(java.lang.String granularity)
The granularity of the metric. The only valid value is
1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
granularity
-
The granularity of the metric. The only valid value is
1Minute
.
public EnabledMetric withGranularity(java.lang.String granularity)
The granularity of the metric. The only valid value is
1Minute
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.