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 Metric
build()
Metric.Builder
copy(Metric model)
Metric.Builder
description(String description)
A description of the metric.Metric.Builder
name(String name)
The name of the metric.Metric.Builder
unit(String unit)
The unit of the metric.Metric.Builder
valueSource(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)
-
-