Package io.fabric8.maven.docker.config
Enum NetworkConfig.Mode
- java.lang.Object
-
- java.lang.Enum<NetworkConfig.Mode>
-
- io.fabric8.maven.docker.config.NetworkConfig.Mode
-
- All Implemented Interfaces:
Serializable,Comparable<NetworkConfig.Mode>
- Enclosing class:
- NetworkConfig
public static enum NetworkConfig.Mode extends Enum<NetworkConfig.Mode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetworkConfig.ModevalueOf(String name)Returns the enum constant of this type with the specified name.static NetworkConfig.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final NetworkConfig.Mode none
-
bridge
public static final NetworkConfig.Mode bridge
-
host
public static final NetworkConfig.Mode host
-
container
public static final NetworkConfig.Mode container
-
custom
public static final NetworkConfig.Mode custom
-
-
Method Detail
-
values
public static NetworkConfig.Mode[] 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 (NetworkConfig.Mode c : NetworkConfig.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkConfig.Mode 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
-
-