Package com.oracle.bmc.apmconfig.model
Class Metric.Builder
- java.lang.Object
-
- com.oracle.bmc.apmconfig.model.Metric.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metricbuild()Metric.Buildercopy(Metric model)Metric.Builderdescription(String description)A description of the metric.Metric.Buildername(String name)The name of the metric.Metric.Builderunit(String unit)The unit of the metric.Metric.BuildervalueSource(String valueSource)This must not be set.
-
-
-
Method Detail
-
name
public Metric.Builder name(String name)
The name of the metric.This must be a known metric name.
- Parameters:
name- the value to set- Returns:
- this builder
-
valueSource
public Metric.Builder valueSource(String valueSource)
This must not be set.- Parameters:
valueSource- the value to set- Returns:
- this builder
-
unit
public Metric.Builder unit(String unit)
The unit of the metric.- Parameters:
unit- the value to set- Returns:
- this builder
-
description
public Metric.Builder description(String description)
A description of the metric.- Parameters:
description- the value to set- Returns:
- this builder
-
build
public Metric build()
-
copy
public Metric.Builder copy(Metric model)
-
-