Class ConfigKey.ConfigKeyBuilder
- java.lang.Object
-
- org.apache.bookkeeper.common.conf.ConfigKey.ConfigKeyBuilder
-
- Enclosing class:
- ConfigKey
public static class ConfigKey.ConfigKeyBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigKeyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigKey
build()
ConfigKey.ConfigKeyBuilder
defaultValue(java.lang.Object defaultValue)
Default value as a string representation.ConfigKey.ConfigKeyBuilder
dependents(java.util.List<java.lang.String> dependents)
The list of settings dependents on this setting.ConfigKey.ConfigKeyBuilder
deprecated(boolean deprecated)
Whether this setting is deprecated or not.ConfigKey.ConfigKeyBuilder
deprecatedByConfigKey(java.lang.String deprecatedByConfigKey)
The config key that deprecates this key.ConfigKey.ConfigKeyBuilder
deprecatedSince(java.lang.String deprecatedSince)
The version when this settings was deprecated.ConfigKey.ConfigKeyBuilder
description(java.lang.String description)
Description of the configuration setting.ConfigKey.ConfigKeyBuilder
documentation(java.lang.String documentation)
Documentation of the configuration setting.ConfigKey.ConfigKeyBuilder
group(ConfigKeyGroup group)
The key-group to group settings together.ConfigKey.ConfigKeyBuilder
name(java.lang.String name)
Name of the configuration setting.ConfigKey.ConfigKeyBuilder
optionValues(java.util.List<java.lang.String> optionValues)
The list of options for this setting.ConfigKey.ConfigKeyBuilder
orderInGroup(int orderInGroup)
The order of the setting in the key-group.ConfigKey.ConfigKeyBuilder
required(boolean required)
Flag indicates whether the setting is required.ConfigKey.ConfigKeyBuilder
since(java.lang.String since)
The version when this setting was introduced.java.lang.String
toString()
ConfigKey.ConfigKeyBuilder
type(Type type)
Type of the configuration setting.ConfigKey.ConfigKeyBuilder
validator(Validator validator)
The validator used for validating configuration value.
-
-
-
Method Detail
-
required
public ConfigKey.ConfigKeyBuilder required(boolean required)
Flag indicates whether the setting is required.- Returns:
this
.
-
name
public ConfigKey.ConfigKeyBuilder name(java.lang.String name)
Name of the configuration setting.- Returns:
this
.
-
type
public ConfigKey.ConfigKeyBuilder type(Type type)
Type of the configuration setting.- 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
.
-
validator
public ConfigKey.ConfigKeyBuilder validator(Validator validator)
The validator used for validating configuration value.- Returns:
this
.
-
group
public ConfigKey.ConfigKeyBuilder group(ConfigKeyGroup group)
The key-group to group settings together.- 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
.
-
build
public ConfigKey build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-