Class ListMetricsResult

    • Constructor Detail

      • ListMetricsResult

        public ListMetricsResult()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object