public class GetMetricStatisticsResult extends Object implements Serializable, Cloneable
The output for GetMetricStatistics.
Constructor and Description |
---|
GetMetricStatisticsResult() |
Modifier and Type | Method and Description |
---|---|
GetMetricStatisticsResult |
clone() |
boolean |
equals(Object obj) |
List<Datapoint> |
getDatapoints()
The datapoints for the specified metric.
|
String |
getLabel()
A label describing the specified metric.
|
int |
hashCode() |
void |
setDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
|
void |
setLabel(String label)
A label describing the specified metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetMetricStatisticsResult |
withDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
|
GetMetricStatisticsResult |
withDatapoints(Datapoint... datapoints)
The datapoints for the specified metric.
|
GetMetricStatisticsResult |
withLabel(String label)
A label describing the specified metric.
|
public void setLabel(String label)
A label describing the specified metric.
label
- A label describing the specified metric.public String getLabel()
A label describing the specified metric.
public GetMetricStatisticsResult withLabel(String label)
A label describing the specified metric.
label
- A label describing the specified metric.public List<Datapoint> getDatapoints()
The datapoints for the specified metric.
public void setDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
datapoints
- The datapoints for the specified metric.public GetMetricStatisticsResult withDatapoints(Datapoint... datapoints)
The datapoints for the specified metric.
NOTE: This method appends the values to the existing list (if
any). Use setDatapoints(java.util.Collection)
or
withDatapoints(java.util.Collection)
if you want to override the
existing values.
datapoints
- The datapoints for the specified metric.public GetMetricStatisticsResult withDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
datapoints
- The datapoints for the specified metric.public String toString()
toString
in class Object
Object.toString()
public GetMetricStatisticsResult clone()
Copyright © 2016. All rights reserved.