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

java.lang.Object
io.helidon.builder.codegen.OptionDeprecation.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>
Direct Known Subclasses:
OptionDeprecation.Builder
Enclosing interface:
OptionDeprecation

public abstract static class OptionDeprecation.BuilderBase<BUILDER extends OptionDeprecation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OptionDeprecation> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for OptionDeprecation.
  • Constructor Details

    • BuilderBase

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

    • from

      public BUILDER from(OptionDeprecation 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(OptionDeprecation.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
    • message

      public BUILDER message(String message)
      Deprecation message.
      Parameters:
      message - deprecation message
      Returns:
      updated builder instance
      See Also:
    • forRemoval

      public BUILDER forRemoval(boolean forRemoval)
      If this is scheduled for removal, defaults to true.
      Parameters:
      forRemoval - whether scheduled for removal
      Returns:
      updated builder instance
      See Also:
    • clearAlternative

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

      public BUILDER alternative(String alternative)
      Name of the option to use instead of this one.
      Parameters:
      alternative - alternative option name
      Returns:
      updated builder instance
      See Also:
    • clearSince

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

      public BUILDER since(String since)
      Version that deprecated this option.
      Parameters:
      since - since version
      Returns:
      updated builder instance
      See Also:
    • message

      public Optional<String> message()
      Deprecation message.
      Returns:
      deprecation message
    • forRemoval

      public boolean forRemoval()
      If this is scheduled for removal, defaults to true.
      Returns:
      whether scheduled for removal
    • alternative

      public Optional<String> alternative()
      Name of the option to use instead of this one.
      Returns:
      alternative option name
    • since

      public Optional<String> since()
      Version that deprecated this option.
      Returns:
      since version
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.