Interface ImmutableMetricDescriptor.BuildFinal
- All Known Implementing Classes:
ImmutableMetricDescriptor.Builder
- Enclosing class:
ImmutableMetricDescriptor
public static interface ImmutableMetricDescriptor.BuildFinal
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutableMetricDescriptor
.description
(String description) Initializes the value for thedescription
attribute.
-
Method Details
-
description
Initializes the value for thedescription
attribute.If not set, this attribute will have a default value as returned by the initializer of
description
.- Parameters:
description
- The value for description- Returns:
this
builder for use in a chained invocation
-
build
ImmutableMetricDescriptor build()Builds a newImmutableMetricDescriptor
.- Returns:
- An immutable instance of MetricDescriptor
- Throws:
IllegalStateException
- if any required attributes are missing
-