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 GetMetricStatistics
build()
Returns a newly-createdGetMetricStatisticsOptionsV2
based on the contents of theBuilder
.GetMetricStatistics.Builder
dimension(Dimension dimension)
A dimension describing qualities of the metric.GetMetricStatistics.Builder
dimensions(Set<Dimension> dimensions)
A list of dimensions describing qualities of the metric.GetMetricStatistics.Builder
endTime(Date endTime)
The time stamp to use for determining the last datapoint to return.GetMetricStatistics.Builder
metricName(String metricName)
The name of the metric.GetMetricStatistics.Builder
namespace(String namespace)
The namespace of the metric.GetMetricStatistics.Builder
period(int period)
The granularity, in seconds, of the returned datapoints.GetMetricStatistics.Builder
startTime(Date startTime)
The time stamp to use for determining the first datapoint to return.GetMetricStatistics.Builder
statistic(Statistics statistic)
The metric statistic to return.GetMetricStatistics.Builder
statistics(Set<Statistics> statistics)
The metric statistics to return.GetMetricStatistics.Builder
unit(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
Builder
object
-
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
Builder
object
-
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
Builder
object
-
metricName
public GetMetricStatistics.Builder metricName(String metricName)
The name of the metric.- Parameters:
metricName
- the metric name to filter against- Returns:
- this
Builder
object
-
namespace
public GetMetricStatistics.Builder namespace(String namespace)
The namespace of the metric.- Parameters:
namespace
- the namespace to filter against- Returns:
- this
Builder
object
-
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
Builder
object
-
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
Builder
object
-
statistics
public GetMetricStatistics.Builder statistics(Set<Statistics> statistics)
The metric statistics to return.- Parameters:
statistics
- the metric statistics to return.- Returns:
- this
Builder
object
-
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
Builder
object
-
unit
public GetMetricStatistics.Builder unit(Unit unit)
The unit for the metric.- Parameters:
unit
- the unit for the metric- Returns:
- this
Builder
object
-
build
public GetMetricStatistics build()
Returns a newly-createdGetMetricStatisticsOptionsV2
based on the contents of theBuilder
.
-
-