public class ListMetricsRequest extends AmazonWebServiceRequest implements Serializable
Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.
NextToken values with subsequent
ListMetrics operations. ListMetrics action. Statistics
about the metric, however, are available sooner using
GetMetricStatistics. | Constructor and Description |
|---|
ListMetricsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<DimensionFilter> |
getDimensions()
A list of dimensions to filter against.
|
String |
getMetricName()
The name of the metric to filter against.
|
String |
getNamespace()
The namespace to filter against.
|
String |
getNextToken()
The token returned by a previous call to indicate that there is more data
available.
|
int |
hashCode() |
void |
setDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
|
void |
setMetricName(String metricName)
The name of the metric to filter against.
|
void |
setNamespace(String namespace)
The namespace to filter against.
|
void |
setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListMetricsRequest |
withDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
|
ListMetricsRequest |
withDimensions(DimensionFilter... dimensions)
A list of dimensions to filter against.
|
ListMetricsRequest |
withMetricName(String metricName)
The name of the metric to filter against.
|
ListMetricsRequest |
withNamespace(String namespace)
The namespace to filter against.
|
ListMetricsRequest |
withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getNamespace()
The namespace to filter against.
Constraints:
Length: 1 - 255
Pattern: [^:].*
The namespace to filter against.
public void setNamespace(String namespace)
The namespace to filter against.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace to filter against.
public ListMetricsRequest withNamespace(String namespace)
The namespace to filter against.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace to filter against.
public String getMetricName()
The name of the metric to filter against.
Constraints:
Length: 1 - 255
The name of the metric to filter against.
public void setMetricName(String metricName)
The name of the metric to filter against.
Constraints:
Length: 1 - 255
metricName - The name of the metric to filter against.
public ListMetricsRequest withMetricName(String metricName)
The name of the metric to filter against.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
metricName - The name of the metric to filter against.
public List<DimensionFilter> getDimensions()
A list of dimensions to filter against.
A list of dimensions to filter against.
public void setDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
dimensions - A list of dimensions to filter against.
public ListMetricsRequest withDimensions(DimensionFilter... dimensions)
A list of dimensions to filter against.
Returns a reference to this object so that method calls can be chained together.
dimensions - A list of dimensions to filter against.
public ListMetricsRequest withDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
Returns a reference to this object so that method calls can be chained together.
dimensions - A list of dimensions to filter against.
public String getNextToken()
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
The token returned by a previous call to indicate that there is more data available.
public void setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
nextToken - The token returned by a previous call to indicate that there is more data available.
public ListMetricsRequest withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
nextToken - The token returned by a previous call to indicate that there is more data available.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.