Class TypedAttributes.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.TypedAttributes.BuilderBase<TypedAttributes.Builder, TypedAttributes>
io.helidon.telemetry.otelconfig.TypedAttributes.Builder
- All Implemented Interfaces:
Prototype.Builder<TypedAttributes.Builder, TypedAttributes>, Builder<TypedAttributes.Builder, TypedAttributes>, ConfigBuilderSupport.ConfiguredBuilder<TypedAttributes.Builder, TypedAttributes>, Supplier<TypedAttributes>
- Enclosing interface:
TypedAttributes
public static class TypedAttributes.Builder
extends TypedAttributes.BuilderBase<TypedAttributes.Builder, TypedAttributes>
implements Builder<TypedAttributes.Builder, TypedAttributes>
Fluent API builder for
TypedAttributes.-
Nested Class Summary
Nested classes/interfaces inherited from class TypedAttributes.BuilderBase
TypedAttributes.BuilderBase.TypedAttributesImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class TypedAttributes.BuilderBase
addBooleanAttributes, addDoubleAttributes, addLongAttributes, addStringAttributes, booleanAttributes, booleanAttributes, config, config, doubleAttributes, doubleAttributes, from, from, longAttributes, longAttributes, preBuildPrototype, putBooleanAttribute, putDoubleAttribute, putLongAttribute, putStringAttribute, stringAttributes, stringAttributes, toString, validatePrototypeModifier and TypeMethodDescriptionaddBooleanAttributes(Map<String, Boolean> booleanAttributes) Boolean attributes.addDoubleAttributes(Map<String, Double> doubleAttributes) Double attributes.addLongAttributes(Map<String, Long> longAttributes) Long attributes.addStringAttributes(Map<String, String> stringAttributes) String attributes.Boolean attributes.booleanAttributes(Map<String, Boolean> booleanAttributes) Boolean attributes.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Double attributes.doubleAttributes(Map<String, Double> doubleAttributes) Double attributes.from(TypedAttributes prototype) Update this builder from an existing prototype instance.from(TypedAttributes.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Long attributes.longAttributes(Map<String, Long> longAttributes) Long attributes.protected voidHandles providers and decorators.putBooleanAttribute(String key, Boolean booleanAttribute) Boolean attributes.putDoubleAttribute(String key, Double doubleAttribute) Double attributes.putLongAttribute(String key, Long longAttribute) Long attributes.putStringAttribute(String key, String stringAttribute) String attributes.String attributes.stringAttributes(Map<String, String> stringAttributes) String attributes.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault TypedAttributesget()default TypedAttributes.Builderidentity()Instance of this builder as the correct type.default TypedAttributes.Builderupdate(Consumer<TypedAttributes.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault TypedAttributes.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<TypedAttributes.Builder, TypedAttributes>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<TypedAttributes.Builder, TypedAttributes>- Returns:
- instance of the built type
-