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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(OptionAllowedValue 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(OptionAllowedValue.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
    • value

      public BUILDER value(String value)
      Value, such as a string constant or enum value.
      Parameters:
      value - value that is allowed
      Returns:
      updated builder instance
      See Also:
    • description

      public BUILDER description(String description)
      Description of this value.
      Parameters:
      description - value description
      Returns:
      updated builder instance
      See Also:
    • value

      public Optional<String> value()
      Value, such as a string constant or enum value.
      Returns:
      value that is allowed
    • description

      public Optional<String> description()
      Description of this value.
      Returns:
      value description
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.