public class ListMetricsRequest extends AmazonWebServiceRequest implements java.io.Serializable
ListMetrics operation.
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.
NOTE: Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.
NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action.
| コンストラクタと説明 |
|---|
ListMetricsRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(java.lang.String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace to filter against.public ListMetricsRequest withNamespace(java.lang.String namespace)
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()
Constraints:
Length: 1 - 255
public void setMetricName(java.lang.String metricName)
Constraints:
Length: 1 - 255
metricName - The name of the metric to filter against.public ListMetricsRequest withMetricName(java.lang.String metricName)
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()
Constraints:
Length: 0 - 10
public void setDimensions(java.util.Collection<DimensionFilter> dimensions)
Constraints:
Length: 0 - 10
dimensions - A list of dimensions to filter against.public ListMetricsRequest withDimensions(DimensionFilter... dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions - A list of dimensions to filter against.public ListMetricsRequest withDimensions(java.util.Collection<DimensionFilter> dimensions)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
dimensions - A list of dimensions to filter against.public java.lang.String getNextToken()
public void setNextToken(java.lang.String nextToken)
nextToken - The token returned by a previous call to indicate that there is more
data available.public ListMetricsRequest withNextToken(java.lang.String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken - The token returned by a previous call to indicate that there is more
data available.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object