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 ListMetricsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<DimensionFilter>getDimensions()A list of dimensions to filter against.StringgetMetricName()The name of the metric to filter against.StringgetNamespace()The namespace to filter against.StringgetNextToken()The token returned by a previous call to indicate that there is more data available.inthashCode()voidsetDimensions(Collection<DimensionFilter> dimensions)A list of dimensions to filter against.voidsetMetricName(String metricName)The name of the metric to filter against.voidsetNamespace(String namespace)The namespace to filter against.voidsetNextToken(String nextToken)The token returned by a previous call to indicate that there is more data available.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListMetricsRequestwithDimensions(DimensionFilter... dimensions)A list of dimensions to filter against.ListMetricsRequestwithDimensions(Collection<DimensionFilter> dimensions)A list of dimensions to filter against.ListMetricsRequestwithMetricName(String metricName)The name of the metric to filter against.ListMetricsRequestwithNamespace(String namespace)The namespace to filter against.ListMetricsRequestwithNextToken(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListMetricsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-