public class MetricGranularityType
extends java.lang.Object
implements java.io.Serializable
Describes a granularity of a metric.
Constructor and Description |
---|
MetricGranularityType() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGranularity()
The granularity.
|
int |
hashCode() |
void |
setGranularity(java.lang.String granularity)
The granularity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricGranularityType |
withGranularity(java.lang.String granularity)
The granularity.
|
public java.lang.String getGranularity()
The granularity. The only valid value is 1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The granularity. The only valid value is 1Minute
.
public void setGranularity(java.lang.String granularity)
The granularity. The only valid value is 1Minute
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
granularity
-
The granularity. The only valid value is 1Minute
.
public MetricGranularityType withGranularity(java.lang.String granularity)
The granularity. 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. 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.