public class ListMetricsResult extends Object implements Serializable
The output for the ListMetrics action.
Constructor and Description |
---|
ListMetricsResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Metric> |
getMetrics()
A list of metrics used to generate statistics for an AWS account.
|
String |
getNextToken()
A string that marks the start of the next batch of returned results.
|
int |
hashCode() |
void |
setMetrics(Collection<Metric> metrics)
A list of metrics used to generate statistics for an AWS account.
|
void |
setNextToken(String nextToken)
A string that marks the start of the next batch of returned results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListMetricsResult |
withMetrics(Collection<Metric> metrics)
A list of metrics used to generate statistics for an AWS account.
|
ListMetricsResult |
withMetrics(Metric... metrics)
A list of metrics used to generate statistics for an AWS account.
|
ListMetricsResult |
withNextToken(String nextToken)
A string that marks the start of the next batch of returned results.
|
public List<Metric> getMetrics()
public void setMetrics(Collection<Metric> metrics)
metrics
- A list of metrics used to generate statistics for an AWS account.public ListMetricsResult withMetrics(Metric... metrics)
Returns a reference to this object so that method calls can be chained together.
metrics
- A list of metrics used to generate statistics for an AWS account.public ListMetricsResult withMetrics(Collection<Metric> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics
- A list of metrics used to generate statistics for an AWS account.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- A string that marks the start of the next batch of returned results.public ListMetricsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- A string that marks the start of the next batch of returned results.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.