@InterfaceStability.Evolving public class ConfigEntry extends Object
Admin
for details.Modifier and Type | Class and Description |
---|---|
static class |
ConfigEntry.ConfigSource
Source of configuration entries.
|
static class |
ConfigEntry.ConfigSynonym
Class representing a configuration synonym of a
ConfigEntry . |
static class |
ConfigEntry.ConfigType
Data type of configuration entry.
|
Constructor and Description |
---|
ConfigEntry(String name,
String value)
Create a configuration entry with the provided values.
|
Modifier and Type | Method and Description |
---|---|
String |
documentation()
Return the config documentation.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isDefault()
Return whether the config value is the default or if it's been explicitly set.
|
boolean |
isReadOnly()
Return whether the config is read-only and cannot be updated.
|
boolean |
isSensitive()
Return whether the config value is sensitive.
|
String |
name()
Return the config name.
|
ConfigEntry.ConfigSource |
source()
Return the source of this configuration entry.
|
List<ConfigEntry.ConfigSynonym> |
synonyms()
Returns all config values that may be used as the value of this config along with their source,
in the order of precedence.
|
String |
toString()
Override toString to redact sensitive value.
|
ConfigEntry.ConfigType |
type()
Return the config data type.
|
String |
value()
Return the value or null.
|
public String name()
public String value()
public ConfigEntry.ConfigSource source()
public boolean isDefault()
public boolean isSensitive()
public boolean isReadOnly()
public List<ConfigEntry.ConfigSynonym> synonyms()
DescribeConfigsOptions.includeSynonyms(boolean)
public ConfigEntry.ConfigType type()
public String documentation()