Class ListMetricsResult

java.lang.Object
com.amazonaws.services.cloudwatch.model.ListMetricsResult
All Implemented Interfaces:
Serializable, Cloneable

public class ListMetricsResult extends Object implements Serializable, Cloneable

The output for the ListMetrics action.

See Also:
  • Constructor Details

    • ListMetricsResult

      public ListMetricsResult()
  • Method Details

    • getMetrics

      public List<Metric> getMetrics()

      A list of metrics used to generate statistics for an AWS account.

      Returns:
      A list of metrics used to generate statistics for an AWS account.
    • setMetrics

      public void setMetrics(Collection<Metric> metrics)

      A list of metrics used to generate statistics for an AWS account.

      Parameters:
      metrics - A list of metrics used to generate statistics for an AWS account.
    • withMetrics

      public ListMetricsResult withMetrics(Metric... metrics)

      A list of metrics used to generate statistics for an AWS account.

      NOTE: This method appends the values to the existing list (if any). Use setMetrics(java.util.Collection) or withMetrics(java.util.Collection) if you want to override the existing values.

      Parameters:
      metrics - A list of metrics used to generate statistics for an AWS account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withMetrics

      public ListMetricsResult withMetrics(Collection<Metric> metrics)

      A list of metrics used to generate statistics for an AWS account.

      Parameters:
      metrics - A list of metrics used to generate statistics for an AWS account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      public void setNextToken(String nextToken)

      A string that marks the start of the next batch of returned results.

      Parameters:
      nextToken - A string that marks the start of the next batch of returned results.
    • getNextToken

      public String getNextToken()

      A string that marks the start of the next batch of returned results.

      Returns:
      A string that marks the start of the next batch of returned results.
    • withNextToken

      public ListMetricsResult withNextToken(String nextToken)

      A string that marks the start of the next batch of returned results.

      Parameters:
      nextToken - A string that marks the start of the next batch of returned results.
      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 ListMetricsResult clone()
      Overrides:
      clone in class Object