Class GetMetricStatisticsResult
- java.lang.Object
-
- com.amazonaws.services.cloudwatch.model.GetMetricStatisticsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetMetricStatisticsResult extends Object implements Serializable, Cloneable
The output for the GetMetricStatistics action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetMetricStatisticsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMetricStatisticsResultclone()booleanequals(Object obj)List<Datapoint>getDatapoints()The datapoints for the specified metric.StringgetLabel()A label describing the specified metric.inthashCode()voidsetDatapoints(Collection<Datapoint> datapoints)The datapoints for the specified metric.voidsetLabel(String label)A label describing the specified metric.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetMetricStatisticsResultwithDatapoints(Datapoint... datapoints)The datapoints for the specified metric.GetMetricStatisticsResultwithDatapoints(Collection<Datapoint> datapoints)The datapoints for the specified metric.GetMetricStatisticsResultwithLabel(String label)A label describing the specified metric.
-
-
-
Method Detail
-
setLabel
public void setLabel(String label)
A label describing the specified metric.
- Parameters:
label- A label describing the specified metric.
-
getLabel
public String getLabel()
A label describing the specified metric.
- Returns:
- A label describing the specified metric.
-
withLabel
public GetMetricStatisticsResult withLabel(String label)
A label describing the specified metric.
- Parameters:
label- A label describing the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDatapoints
public List<Datapoint> getDatapoints()
The datapoints for the specified metric.
- Returns:
- The datapoints for the specified metric.
-
setDatapoints
public void setDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
- Parameters:
datapoints- The datapoints for the specified metric.
-
withDatapoints
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)orwithDatapoints(java.util.Collection)if you want to override the existing values.- Parameters:
datapoints- The datapoints for the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDatapoints
public GetMetricStatisticsResult withDatapoints(Collection<Datapoint> datapoints)
The datapoints for the specified metric.
- Parameters:
datapoints- The datapoints for the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetMetricStatisticsResult clone()
-
-