Package org.jclouds.cloudwatch.domain
Class MetricDatum.Builder
java.lang.Object
org.jclouds.cloudwatch.domain.MetricDatum.Builder
- Enclosing class:
MetricDatum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newly-createdMetricDatumbased on the contents of theBuilder.A dimension describing qualities of the metric.dimensions(Iterable<Dimension> dimensions) A list of dimensions describing qualities of the metric.metricName(String metricName) The name of the metric.statisticValues(StatisticValues statisticValues) The object describing the set of statistical values describing the metric.The time stamp used for the metric.The unit for the metric.The value for the metric.
-
Constructor Details
-
Builder
public Builder()Creates a new builder. The returned builder is equivalent to the builder generated byMetricDatum.builder().
-
-
Method Details
-
dimensions
A list of dimensions describing qualities of the metric.- Parameters:
dimensions- the dimensions describing the qualities of the metric- Returns:
- this
Builderobject
-
dimension
A dimension describing qualities of the metric.- Parameters:
dimension- the dimension describing the qualities of the metric- Returns:
- this
Builderobject
-
metricName
The name of the metric.- Parameters:
metricName- the metric name- Returns:
- this
Builderobject
-
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
Builderobject
-
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
Builderobject
-
unit
The unit for the metric.- Parameters:
unit- the unit for the metric- Returns:
- this
Builderobject
-
value
The value for the metric.- Parameters:
value- the value for the metric- Returns:
- this
Builderobject
-
build
Returns a newly-createdMetricDatumbased on the contents of theBuilder.
-