@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetMetricStatisticsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetMetricStatisticsResult() |
Modifier and Type | Method and Description |
---|---|
GetMetricStatisticsResult |
clone() |
boolean |
equals(Object obj) |
List<Datapoint> |
getDatapoints()
The data points for the specified metric.
|
String |
getLabel()
A label for the specified metric.
|
int |
hashCode() |
void |
setDatapoints(Collection<Datapoint> datapoints)
The data points for the specified metric.
|
void |
setLabel(String label)
A label for the specified metric.
|
String |
toString()
Returns a string representation of this object.
|
GetMetricStatisticsResult |
withDatapoints(Collection<Datapoint> datapoints)
The data points for the specified metric.
|
GetMetricStatisticsResult |
withDatapoints(Datapoint... datapoints)
The data points for the specified metric.
|
GetMetricStatisticsResult |
withLabel(String label)
A label for the specified metric.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setLabel(String label)
A label for the specified metric.
label
- A label for the specified metric.public String getLabel()
A label for the specified metric.
public GetMetricStatisticsResult withLabel(String label)
A label for the specified metric.
label
- A label for the specified metric.public List<Datapoint> getDatapoints()
The data points for the specified metric.
public void setDatapoints(Collection<Datapoint> datapoints)
The data points for the specified metric.
datapoints
- The data points for the specified metric.public GetMetricStatisticsResult withDatapoints(Datapoint... datapoints)
The data points 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 data points for the specified metric.public GetMetricStatisticsResult withDatapoints(Collection<Datapoint> datapoints)
The data points for the specified metric.
datapoints
- The data points for the specified metric.public String toString()
toString
in class Object
Object.toString()
public GetMetricStatisticsResult clone()