Class ListMetricsResult
java.lang.Object
com.amazonaws.services.cloudwatch.model.ListMetricsResult
- All Implemented Interfaces:
Serializable, Cloneable
The output for the ListMetrics action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanA list of metrics used to generate statistics for an AWS account.A string that marks the start of the next batch of returned results.inthashCode()voidsetMetrics(Collection<Metric> metrics) A list of metrics used to generate statistics for an AWS account.voidsetNextToken(String nextToken) A string that marks the start of the next batch of returned results.toString()Returns a string representation of this object; useful for testing and debugging.withMetrics(Metric... metrics) A list of metrics used to generate statistics for an AWS account.withMetrics(Collection<Metric> metrics) A list of metrics used to generate statistics for an AWS account.withNextToken(String nextToken) A string that marks the start of the next batch of returned results.
-
Constructor Details
-
ListMetricsResult
public ListMetricsResult()
-
-
Method Details
-
getMetrics
-
setMetrics
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
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
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
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
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
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
-
equals
-
hashCode
-
clone
-