public static enum ConsulConfigProperties.Format extends Enum<ConsulConfigProperties.Format>
| Enum Constant and Description |
|---|
FILES
Indicates that the configuration specified in consul uses keys as files.
|
KEY_VALUE
Indicates that the configuration specified in consul is of type native key
values.
|
PROPERTIES
Indicates that the configuration specified in consul is of property style i.e.,
value of the consul key would be a list of key=value pairs separated by new
lines.
|
YAML
Indicates that the configuration specified in consul is of YAML style i.e.,
value of the consul key would be YAML format.
|
| Modifier and Type | Method and Description |
|---|---|
static ConsulConfigProperties.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsulConfigProperties.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsulConfigProperties.Format KEY_VALUE
public static final ConsulConfigProperties.Format PROPERTIES
public static final ConsulConfigProperties.Format YAML
public static final ConsulConfigProperties.Format FILES
public static ConsulConfigProperties.Format[] values()
for (ConsulConfigProperties.Format c : ConsulConfigProperties.Format.values()) System.out.println(c);
public static ConsulConfigProperties.Format valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 Pivotal Software, Inc.. All rights reserved.