public class ListMetricsRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.Object obj) |
java.util.List<DimensionFilter> |
getDimensions()
A list of dimensions to filter against.
|
java.lang.String |
getMetricName()
The name of the metric to filter against.
|
java.lang.String |
getNamespace()
The namespace to filter against.
|
java.lang.String |
getNextToken()
The token returned by a previous call to indicate that there is more data
available.
|
int |
hashCode() |
void |
setDimensions(java.util.Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
|
void |
setMetricName(java.lang.String metricName)
The name of the metric to filter against.
|
void |
setNamespace(java.lang.String namespace)
The namespace to filter against.
|
void |
setNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListMetricsRequest |
withDimensions(java.util.Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
|
ListMetricsRequest |
withDimensions(DimensionFilter... dimensions)
A list of dimensions to filter against.
|
ListMetricsRequest |
withMetricName(java.lang.String metricName)
The name of the metric to filter against.
|
ListMetricsRequest |
withNamespace(java.lang.String namespace)
The namespace to filter against.
|
ListMetricsRequest |
withNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getNamespace()
The namespace to filter against.
Constraints:
Length: 1 - 255
Pattern: [^:].*
The namespace to filter against.
public void setNamespace(java.lang.String namespace)
The namespace to filter against.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace to filter against.
public ListMetricsRequest withNamespace(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.List<DimensionFilter> getDimensions()
A list of dimensions to filter against.
A list of dimensions to filter against.
public void setDimensions(java.util.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(java.util.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.