Class ConfigKey.ConfigKeyBuilder

  • Enclosing class:
    ConfigKey

    public static class ConfigKey.ConfigKeyBuilder
    extends java.lang.Object
    • Constructor Detail

      • ConfigKeyBuilder

        ConfigKeyBuilder()
    • Method Detail

      • required

        public ConfigKey.ConfigKeyBuilder required​(boolean required)
        Flag indicates whether the setting is required.
        Returns:
        this.
      • description

        public ConfigKey.ConfigKeyBuilder description​(java.lang.String description)
        Description of the configuration setting.
        Returns:
        this.
      • documentation

        public ConfigKey.ConfigKeyBuilder documentation​(java.lang.String documentation)
        Documentation of the configuration setting.
        Returns:
        this.
      • defaultValue

        public ConfigKey.ConfigKeyBuilder defaultValue​(java.lang.Object defaultValue)
        Default value as a string representation.
        Returns:
        this.
      • optionValues

        public ConfigKey.ConfigKeyBuilder optionValues​(java.util.List<java.lang.String> optionValues)
        The list of options for this setting.
        Returns:
        this.
      • orderInGroup

        public ConfigKey.ConfigKeyBuilder orderInGroup​(int orderInGroup)
        The order of the setting in the key-group.
        Returns:
        this.
      • dependents

        public ConfigKey.ConfigKeyBuilder dependents​(java.util.List<java.lang.String> dependents)
        The list of settings dependents on this setting.
        Returns:
        this.
      • deprecated

        public ConfigKey.ConfigKeyBuilder deprecated​(boolean deprecated)
        Whether this setting is deprecated or not.
        Returns:
        this.
      • deprecatedByConfigKey

        public ConfigKey.ConfigKeyBuilder deprecatedByConfigKey​(java.lang.String deprecatedByConfigKey)
        The config key that deprecates this key.
        Returns:
        this.
      • deprecatedSince

        public ConfigKey.ConfigKeyBuilder deprecatedSince​(java.lang.String deprecatedSince)
        The version when this settings was deprecated.
        Returns:
        this.
      • since

        public ConfigKey.ConfigKeyBuilder since​(java.lang.String since)
        The version when this setting was introduced.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object