org.jclouds.cloudwatch.domain
Class MetricDatum.Builder

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

public static class MetricDatum.Builder
extends Object


Constructor Summary
MetricDatum.Builder()
          Creates a new builder.
 
Method Summary
 MetricDatum build()
          Returns a newly-created MetricDatum based on the contents of the Builder.
 MetricDatum.Builder dimension(Dimension dimension)
          A dimension describing qualities of the metric.
 MetricDatum.Builder dimensions(Iterable<Dimension> dimensions)
          A list of dimensions describing qualities of the metric.
 MetricDatum.Builder metricName(String metricName)
          The name of the metric.
 MetricDatum.Builder statisticValues(StatisticValues statisticValues)
          The object describing the set of statistical values describing the metric.
 MetricDatum.Builder timestamp(Date timestamp)
          The time stamp used for the metric.
 MetricDatum.Builder unit(Unit unit)
          The unit for the metric.
 MetricDatum.Builder value(Double value)
          The value for the metric.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricDatum.Builder

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

Method Detail

dimensions

public MetricDatum.Builder dimensions(Iterable<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 MetricDatum.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

metricName

public MetricDatum.Builder metricName(String metricName)
The name of the metric.

Parameters:
metricName - the metric name
Returns:
this Builder object

statisticValues

public MetricDatum.Builder statisticValues(StatisticValues statisticValues)
The object describing the set of statistical values describing the metric.

Parameters:
statisticValues - the object describing the set of statistical values for the metric
Returns:
this Builder object

timestamp

public MetricDatum.Builder timestamp(Date timestamp)
The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.

Parameters:
timestamp - the time stamp used for the metric
Returns:
this Builder object

unit

public MetricDatum.Builder unit(Unit unit)
The unit for the metric.

Parameters:
unit - the unit for the metric
Returns:
this Builder object

value

public MetricDatum.Builder value(Double value)
The value for the metric.

Parameters:
value - the value for the metric
Returns:
this Builder object

build

public MetricDatum build()
Returns a newly-created MetricDatum based on the contents of the Builder.



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