Package org.jclouds.cloudwatch.options
Class ListMetricsOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudwatch.options.ListMetricsOptions
-
- All Implemented Interfaces:
Cloneable,HttpRequestOptions
public class ListMetricsOptions extends BaseHttpRequestOptions implements Cloneable
Options used to list available metrics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListMetricsOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description ListMetricsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListMetricsOptionsafterMarker(Object afterMarker)The token returned by a previous call to indicate that there is more data available.com.google.common.collect.Multimap<String,String>buildFormParameters()Returns a newly-createdListMetricsOptionsbased on the contents of theBuilder.ListMetricsOptionsclone()ListMetricsOptionsdimension(Dimension dimension)A dimension to filter the available metrics by.ListMetricsOptionsdimensions(Iterable<Dimension> dimensions)A list of dimensions to filter against.ListMetricsOptionsmetricName(String metricName)The name of the metric to filter against.ListMetricsOptionsnamespace(String namespace)The namespace to filter against.-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Method Detail
-
namespace
public ListMetricsOptions namespace(String namespace)
The namespace to filter against.- Parameters:
namespace- the namespace to filter against- Returns:
- this
Builderobject
-
metricName
public ListMetricsOptions metricName(String metricName)
The name of the metric to filter against.- Parameters:
metricName- the metric name to filter against- Returns:
- this
Builderobject
-
dimensions
public ListMetricsOptions dimensions(Iterable<Dimension> dimensions)
A list of dimensions to filter against.- Parameters:
dimensions- the dimensions to filter against- Returns:
- this
Builderobject
-
dimension
public ListMetricsOptions dimension(Dimension dimension)
A dimension to filter the available metrics by.- Parameters:
dimension- a dimension to filter the returned metrics by- Returns:
- this
Builderobject
-
afterMarker
public ListMetricsOptions afterMarker(Object afterMarker)
The token returned by a previous call to indicate that there is more data available.- Parameters:
afterMarker- the next token indicating that there is more data available- Returns:
- this
Builderobject
-
buildFormParameters
public com.google.common.collect.Multimap<String,String> buildFormParameters()
Returns a newly-createdListMetricsOptionsbased on the contents of theBuilder.- Specified by:
buildFormParametersin interfaceHttpRequestOptions- Overrides:
buildFormParametersin classBaseHttpRequestOptions- Returns:
- map that may contain query parameters.
-
clone
public ListMetricsOptions clone()
-
-