Package org.jclouds.cloudwatch.domain
Class GetMetricStatistics.Builder
- java.lang.Object
-
- org.jclouds.cloudwatch.domain.GetMetricStatistics.Builder
-
- Enclosing class:
- GetMetricStatistics
public static class GetMetricStatistics.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Creates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMetricStatisticsbuild()Returns a newly-createdGetMetricStatisticsOptionsV2based on the contents of theBuilder.GetMetricStatistics.Builderdimension(Dimension dimension)A dimension describing qualities of the metric.GetMetricStatistics.Builderdimensions(Set<Dimension> dimensions)A list of dimensions describing qualities of the metric.GetMetricStatistics.BuilderendTime(Date endTime)The time stamp to use for determining the last datapoint to return.GetMetricStatistics.BuildermetricName(String metricName)The name of the metric.GetMetricStatistics.Buildernamespace(String namespace)The namespace of the metric.GetMetricStatistics.Builderperiod(int period)The granularity, in seconds, of the returned datapoints.GetMetricStatistics.BuilderstartTime(Date startTime)The time stamp to use for determining the first datapoint to return.GetMetricStatistics.Builderstatistic(Statistics statistic)The metric statistic to return.GetMetricStatistics.Builderstatistics(Set<Statistics> statistics)The metric statistics to return.GetMetricStatistics.Builderunit(Unit unit)The unit for the metric.
-
-
-
Method Detail
-
dimensions
public GetMetricStatistics.Builder 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
Builderobject
-
dimension
public GetMetricStatistics.Builder dimension(Dimension dimension)
A dimension describing qualities of the metric.- Parameters:
dimension- the dimension describing the qualities of the metric- Returns:
- this
Builderobject
-
endTime
public GetMetricStatistics.Builder endTime(Date endTime)
The time stamp to use for determining the last datapoint to return. The value specified is exclusive so results will include datapoints up to the time stamp specified.- Parameters:
endTime- the timestamp to use for determining the last datapoint to return- Returns:
- this
Builderobject
-
metricName
public GetMetricStatistics.Builder metricName(String metricName)
The name of the metric.- Parameters:
metricName- the metric name to filter against- Returns:
- this
Builderobject
-
namespace
public GetMetricStatistics.Builder namespace(String namespace)
The namespace of the metric.- Parameters:
namespace- the namespace to filter against- Returns:
- this
Builderobject
-
period
public GetMetricStatistics.Builder period(int period)
The granularity, in seconds, of the returned datapoints.- Parameters:
period- the granularity, in seconds, of the returned datapoints- Returns:
- this
Builderobject
-
startTime
public GetMetricStatistics.Builder startTime(Date startTime)
The time stamp to use for determining the first datapoint to return. The value specified is inclusive so results include datapoints with the time stamp specified.- Parameters:
startTime- The time stamp to use for determining the first datapoint to return- Returns:
- this
Builderobject
-
statistics
public GetMetricStatistics.Builder statistics(Set<Statistics> statistics)
The metric statistics to return.- Parameters:
statistics- the metric statistics to return.- Returns:
- this
Builderobject
-
statistic
public GetMetricStatistics.Builder statistic(Statistics statistic)
The metric statistic to return. (Can be called multiple times up to a maximum of 5 times.)- Parameters:
statistic- the metric statistic to return- Returns:
- this
Builderobject
-
unit
public GetMetricStatistics.Builder unit(Unit unit)
The unit for the metric.- Parameters:
unit- the unit for the metric- Returns:
- this
Builderobject
-
build
public GetMetricStatistics build()
Returns a newly-createdGetMetricStatisticsOptionsV2based on the contents of theBuilder.
-
-