public class GetMetricStatisticsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output for the GetMetricStatistics action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Datapoint> |
datapoints
The datapoints for the specified metric.
|
private java.lang.String |
label
A label describing the specified metric.
|
Constructor and Description |
---|
GetMetricStatisticsResult() |
Modifier and Type | Method and Description |
---|---|
GetMetricStatisticsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Datapoint> |
getDatapoints()
The datapoints for the specified metric.
|
java.lang.String |
getLabel()
A label describing the specified metric.
|
int |
hashCode() |
void |
setDatapoints(java.util.Collection<Datapoint> datapoints)
The datapoints for the specified metric.
|
void |
setLabel(java.lang.String label)
A label describing the specified metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetMetricStatisticsResult |
withDatapoints(java.util.Collection<Datapoint> datapoints)
The datapoints for the specified metric.
|
GetMetricStatisticsResult |
withDatapoints(Datapoint... datapoints)
The datapoints for the specified metric.
|
GetMetricStatisticsResult |
withLabel(java.lang.String label)
A label describing the specified metric.
|
private java.lang.String label
A label describing the specified metric.
private SdkInternalList<Datapoint> datapoints
The datapoints for the specified metric.
public void setLabel(java.lang.String label)
A label describing the specified metric.
label
- A label describing the specified metric.public java.lang.String getLabel()
A label describing the specified metric.
public GetMetricStatisticsResult withLabel(java.lang.String label)
A label describing the specified metric.
label
- A label describing the specified metric.public java.util.List<Datapoint> getDatapoints()
The datapoints for the specified metric.
public void setDatapoints(java.util.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(java.util.Collection<Datapoint> datapoints)
The datapoints for the specified metric.
datapoints
- The datapoints for the specified metric.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 GetMetricStatisticsResult clone()
clone
in class java.lang.Object