Package org.jclouds.cloudwatch.options
Class GetMetricStatisticsOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudwatch.options.GetMetricStatisticsOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class GetMetricStatisticsOptions extends BaseHttpRequestOptions
Options used to control metric statistics are returned
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetMetricStatisticsOptions.Builder
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description GetMetricStatisticsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.Multimap<String,String>
buildFormParameters()
Builds form parameters representing options.GetMetricStatisticsOptions
dimension(Dimension dimension)
A dimension describing qualities of the metric.GetMetricStatisticsOptions
dimensions(Set<Dimension> dimensions)
A list of dimensions describing qualities of the metric.GetMetricStatisticsOptions
instanceId(String instanceId)
GetMetricStatisticsOptions
unit(Unit unit)
-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Method Detail
-
dimension
public GetMetricStatisticsOptions dimension(Dimension dimension)
A dimension describing qualities of the metric.- Parameters:
dimension
- the dimension describing the qualities of the metric- Returns:
- this
Builder
object
-
dimensions
public GetMetricStatisticsOptions dimensions(Set<Dimension> dimensions)
A list of dimensions describing qualities of the metric.- Parameters:
dimensions
- the dimensions describing the qualities of the metric- Returns:
- this
Builder
object
-
instanceId
public GetMetricStatisticsOptions instanceId(String instanceId)
- Parameters:
instanceId
- filter metrics by instance Id
-
unit
public GetMetricStatisticsOptions unit(Unit unit)
- Parameters:
unit
- the unit of the metric
-
buildFormParameters
public com.google.common.collect.Multimap<String,String> buildFormParameters()
Description copied from interface:HttpRequestOptions
Builds form parameters representing options.- Specified by:
buildFormParameters
in interfaceHttpRequestOptions
- Overrides:
buildFormParameters
in classBaseHttpRequestOptions
- Returns:
- map that may contain query parameters.
-
-