com.amazonaws.services.cloudwatch.model
Class ListMetricsResult

java.lang.Object
  extended by com.amazonaws.services.cloudwatch.model.ListMetricsResult

public class ListMetricsResult
extends Object

The output for the ListMetrics action.


Constructor Summary
ListMetricsResult()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListMetricsResult

public ListMetricsResult()
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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
metrics - A list of metrics used to generate statistics for an AWS account.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
metrics - A list of metrics used to generate statistics for an AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withNextToken

public ListMetricsResult withNextToken(String nextToken)
A string that marks the start of the next batch of returned results.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nextToken - A string that marks the start of the next batch of returned results.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.