org.jclouds.cloudwatch.domain
Class GetMetricStatistics.Builder

java.lang.Object
  extended by org.jclouds.cloudwatch.domain.GetMetricStatistics.Builder
Enclosing class:
GetMetricStatistics

public static class GetMetricStatistics.Builder
extends Object


Constructor Summary
GetMetricStatistics.Builder()
          Creates a new builder.
 
Method Summary
 GetMetricStatistics build()
          Returns a newly-created GetMetricStatisticsOptionsV2 based on the contents of the Builder.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMetricStatistics.Builder

public GetMetricStatistics.Builder()
Creates a new builder. The returned builder is equivalent to the builder generated by ListMetricsOptions#builder.

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-created GetMetricStatisticsOptionsV2 based on the contents of the Builder.



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