public class ListMetricsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The output for the ListMetrics action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Metric> |
metrics
A list of metrics used to generate statistics for an AWS account.
|
private java.lang.String |
nextToken
A string that marks the start of the next batch of returned results.
|
Constructor and Description |
---|
ListMetricsResult() |
Modifier and Type | Method and Description |
---|---|
ListMetricsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Metric> |
getMetrics()
A list of metrics used to generate statistics for an AWS account.
|
java.lang.String |
getNextToken()
A string that marks the start of the next batch of returned results.
|
int |
hashCode() |
void |
setMetrics(java.util.Collection<Metric> metrics)
A list of metrics used to generate statistics for an AWS account.
|
void |
setNextToken(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListMetricsResult |
withMetrics(java.util.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(java.lang.String nextToken)
A string that marks the start of the next batch of returned results.
|
private SdkInternalList<Metric> metrics
A list of metrics used to generate statistics for an AWS account.
private java.lang.String nextToken
A string that marks the start of the next batch of returned results.
public java.util.List<Metric> getMetrics()
A list of metrics used to generate statistics for an AWS account.
public void setMetrics(java.util.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(java.util.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(java.lang.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 java.lang.String getNextToken()
A string that marks the start of the next batch of returned results.
public ListMetricsResult withNextToken(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ListMetricsResult clone()
clone
in class java.lang.Object