Class LogLimitsConfig.BuilderBase<BUILDER extends LogLimitsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogLimitsConfig>

java.lang.Object
io.helidon.telemetry.otelconfig.LogLimitsConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
LogLimitsConfig.Builder
Enclosing interface:
LogLimitsConfig

public abstract static class LogLimitsConfig.BuilderBase<BUILDER extends LogLimitsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogLimitsConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for LogLimitsConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(LogLimitsConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(LogLimitsConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      @Deprecated public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends LogLimitsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogLimitsConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends LogLimitsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogLimitsConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearMaxNumberOfAttributes

      public BUILDER clearMaxNumberOfAttributes()
      Clear existing value of maxNumberOfAttributes.
      Returns:
      updated builder instance
      See Also:
    • maxNumberOfAttributes

      public BUILDER maxNumberOfAttributes(int maxNumberOfAttributes)
      Maximum number of attributes allowed.
      Parameters:
      maxNumberOfAttributes - maximum number of attributes
      Returns:
      updated builder instance
      See Also:
    • clearMaxAttributeValueLength

      public BUILDER clearMaxAttributeValueLength()
      Clear existing value of maxAttributeValueLength.
      Returns:
      updated builder instance
      See Also:
    • maxAttributeValueLength

      public BUILDER maxAttributeValueLength(int maxAttributeValueLength)
      Maximum length of an attribute value.
      Parameters:
      maxAttributeValueLength - max length of an attribute value
      Returns:
      updated builder instance
      See Also:
    • maxNumberOfAttributes

      public Optional<Integer> maxNumberOfAttributes()
      Maximum number of attributes allowed.
      Returns:
      maximum number of attributes
    • maxAttributeValueLength

      public Optional<Integer> maxAttributeValueLength()
      Maximum length of an attribute value.
      Returns:
      max length of an attribute value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance