public class EnabledMetric extends Object implements Serializable
The EnabledMetric
data type.
Constructor and Description |
---|
EnabledMetric() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getGranularity()
The granularity of the enabled metric.
|
String |
getMetric()
The name of the enabled metric.
|
int |
hashCode() |
void |
setGranularity(String granularity)
The granularity of the enabled metric.
|
void |
setMetric(String metric)
The name of the enabled metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnabledMetric |
withGranularity(String granularity)
The granularity of the enabled metric.
|
EnabledMetric |
withMetric(String metric)
The name of the enabled metric.
|
public String getMetric()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setMetric(String metric)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
metric
- The name of the enabled metric.public EnabledMetric withMetric(String metric)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
metric
- The name of the enabled metric.public String getGranularity()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setGranularity(String granularity)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
granularity
- The granularity of the enabled metric.public EnabledMetric withGranularity(String granularity)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
granularity
- The granularity of the enabled metric.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.