- java.lang.Object
-
- java.lang.Enum<EtcdConfigSourceBuilder.EtcdApi>
-
- io.helidon.config.etcd.EtcdConfigSourceBuilder.EtcdApi
-
- All Implemented Interfaces:
Serializable
,Comparable<EtcdConfigSourceBuilder.EtcdApi>
- Enclosing class:
- EtcdConfigSourceBuilder
public static enum EtcdConfigSourceBuilder.EtcdApi extends Enum<EtcdConfigSourceBuilder.EtcdApi>
EtcdApi
determines which etcd API version will be used.There are two API versions:
v2
andv3
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EtcdConfigSourceBuilder.EtcdApi
valueOf(String name)
Returns the enum constant of this type with the specified name.static EtcdConfigSourceBuilder.EtcdApi[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
v2
public static final EtcdConfigSourceBuilder.EtcdApi v2
Etcd API v2 version.
-
v3
public static final EtcdConfigSourceBuilder.EtcdApi v3
Etcd API v3 version.
-
-
Method Detail
-
values
public static EtcdConfigSourceBuilder.EtcdApi[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EtcdConfigSourceBuilder.EtcdApi c : EtcdConfigSourceBuilder.EtcdApi.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EtcdConfigSourceBuilder.EtcdApi valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-