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:
  • Constructor Details

    • GetMetricStatisticsResult

      public GetMetricStatisticsResult()
  • Method Details

    • 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) or withDatapoints(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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GetMetricStatisticsResult clone()
      Overrides:
      clone in class Object