org.jclouds.cloudwatch.options
Class ListMetricsOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.cloudwatch.options.ListMetricsOptions
All Implemented Interfaces:
Cloneable, org.jclouds.http.options.HttpRequestOptions

public class ListMetricsOptions
extends org.jclouds.http.options.BaseHttpRequestOptions
implements Cloneable

Options used to list available metrics.

See Also:

Nested Class Summary
static class ListMetricsOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
ListMetricsOptions()
           
 
Method Summary
 ListMetricsOptions afterMarker(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-created ListMetricsOptions based on the contents of the Builder.
 ListMetricsOptions clone()
           
 ListMetricsOptions dimension(Dimension dimension)
          A dimension to filter the available metrics by.
 ListMetricsOptions dimensions(Iterable<Dimension> dimensions)
          A list of dimensions to filter against.
 ListMetricsOptions metricName(String metricName)
          The name of the metric to filter against.
 ListMetricsOptions namespace(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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListMetricsOptions

public ListMetricsOptions()
Method Detail

namespace

public ListMetricsOptions namespace(String namespace)
The namespace to filter against.

Parameters:
namespace - the namespace to filter against
Returns:
this Builder object

metricName

public ListMetricsOptions metricName(String metricName)
The name of the metric to filter against.

Parameters:
metricName - the metric name to filter against
Returns:
this Builder object

dimensions

public ListMetricsOptions dimensions(Iterable<Dimension> dimensions)
A list of dimensions to filter against.

Parameters:
dimensions - the dimensions to filter against
Returns:
this Builder object

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 Builder object

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 Builder object

buildFormParameters

public com.google.common.collect.Multimap<String,String> buildFormParameters()
Returns a newly-created ListMetricsOptions based on the contents of the Builder.

Specified by:
buildFormParameters in interface org.jclouds.http.options.HttpRequestOptions
Overrides:
buildFormParameters in class org.jclouds.http.options.BaseHttpRequestOptions

clone

public ListMetricsOptions clone()
Overrides:
clone in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.