public class ListMetricsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The output for ListMetrics.
Constructor and Description |
---|
ListMetricsResult() |
Modifier and Type | Method and Description |
---|---|
ListMetricsResult |
clone() |
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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Metric> getMetrics()
A list of metrics used to generate statistics for an AWS account.
public void setMetrics(Collection<Metric> metrics)
A list of metrics used to generate statistics for an AWS account.
metrics
- A list of metrics used to generate statistics for an AWS account.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.
metrics
- A list of metrics used to generate statistics for an AWS account.public ListMetricsResult withMetrics(Collection<Metric> metrics)
A list of metrics used to generate statistics for an AWS account.
metrics
- A list of metrics used to generate statistics for an AWS account.public void setNextToken(String nextToken)
A string that marks the start of the next batch of returned results.
nextToken
- A string that marks the start of the next batch of returned results.public String getNextToken()
A string that marks the start of the next batch of returned results.
public ListMetricsResult withNextToken(String nextToken)
A string that marks the start of the next batch of returned results.
nextToken
- A string that marks the start of the next batch of returned results.public String toString()
toString
in class Object
Object.toString()
public ListMetricsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.