Class ListMetricsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudwatch.model.ListMetricsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class ListMetricsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListMetricsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListMetricsRequest
clone()
Creates a shallow clone of this request.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(DimensionFilter... dimensions)
A list of dimensions to filter against.ListMetricsRequest
withDimensions(Collection<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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setNamespace
public void setNamespace(String namespace)
The namespace to filter against.
- Parameters:
namespace
- The namespace to filter against.
-
getNamespace
public String getNamespace()
The namespace to filter against.
- Returns:
- The namespace to filter against.
-
withNamespace
public ListMetricsRequest withNamespace(String namespace)
The namespace to filter against.
- Parameters:
namespace
- The namespace to filter against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMetricName
public void setMetricName(String metricName)
The name of the metric to filter against.
- Parameters:
metricName
- The name of the metric to filter against.
-
getMetricName
public String getMetricName()
The name of the metric to filter against.
- Returns:
- The name of the metric to filter against.
-
withMetricName
public ListMetricsRequest withMetricName(String metricName)
The name of the metric to filter against.
- Parameters:
metricName
- The name of the metric to filter against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDimensions
public List<DimensionFilter> getDimensions()
A list of dimensions to filter against.
- Returns:
- A list of dimensions to filter against.
-
setDimensions
public void setDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
- Parameters:
dimensions
- A list of dimensions to filter against.
-
withDimensions
public ListMetricsRequest withDimensions(DimensionFilter... dimensions)
A list of dimensions to filter against.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
orwithDimensions(java.util.Collection)
if you want to override the existing values.- Parameters:
dimensions
- A list of dimensions to filter against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDimensions
public ListMetricsRequest withDimensions(Collection<DimensionFilter> dimensions)
A list of dimensions to filter against.
- Parameters:
dimensions
- A list of dimensions to filter against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
- Parameters:
nextToken
- The token returned by a previous call to indicate that there is more data available.
-
getNextToken
public String getNextToken()
The token returned by a previous call to indicate that there is more data available.
- Returns:
- The token returned by a previous call to indicate that there is more data available.
-
withNextToken
public ListMetricsRequest withNextToken(String nextToken)
The token returned by a previous call to indicate that there is more data available.
- Parameters:
nextToken
- The token returned by a previous call to indicate that there is more data available.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListMetricsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-