public class MetricGranularityType
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a granularity of a metric.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
granularity
The granularity.
|
Constructor and Description |
---|
MetricGranularityType() |
Modifier and Type | Method and Description |
---|---|
MetricGranularityType |
clone() |
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.
|
private java.lang.String granularity
The granularity. The only valid value is 1Minute
.
public void setGranularity(java.lang.String granularity)
The granularity. The only valid value is 1Minute
.
granularity
- The granularity. The only valid value is 1Minute
.public java.lang.String getGranularity()
The granularity. The only valid value is 1Minute
.
1Minute
.public MetricGranularityType withGranularity(java.lang.String granularity)
The granularity. The only valid value is 1Minute
.
granularity
- The granularity. 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 MetricGranularityType clone()
clone
in class java.lang.Object