Class NamedOption.NamedOptionBuilder

  • Enclosing class:
    NamedOption

    public static class NamedOption.NamedOptionBuilder
    extends Object
    Builder class to create a named options
    • Method Detail

      • build

        public NamedOption build()
        Builds the named option
        Returns:
        the named option
      • defaultValue

        public NamedOption.NamedOptionBuilder defaultValue​(Object defaultValue)
        Sets the default value for the option
        Parameters:
        defaultValue - the default value
        Returns:
        the named option builder
      • description

        public NamedOption.NamedOptionBuilder description​(String description)
        Sets the description of the option
        Parameters:
        description - the description
        Returns:
        the named option builder
      • required

        public NamedOption.NamedOptionBuilder required​(boolean required)
        Sets whether or not the option is required
        Parameters:
        required - True - the option is required to be set
        Returns:
        the named option builder