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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListMetricsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Metric... metrics)
A list of metrics used to generate statistics for an AWS account.ListMetricsResult
withMetrics(Collection<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.
-
-
-
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)
orwithMetrics(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListMetricsResult clone()
-
-