NetworkMode Class

public final class NetworkMode
extends ExpandableStringEnum<NetworkMode>

The network mode Azure CNI is configured with. This cannot be specified if networkPlugin is anything other than 'azure'.

Field Summary

Modifier and Type Field and Description
static final NetworkMode BRIDGE

Static value bridge for NetworkMode.

static final NetworkMode TRANSPARENT

Static value transparent for NetworkMode.

Constructor Summary

Constructor Description
NetworkMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkMode value.

Method Summary

Modifier and Type Method and Description
static NetworkMode fromString(String name)

Creates or finds a NetworkMode from its string representation.

static Collection<NetworkMode> values()

Gets known NetworkMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BRIDGE

public static final NetworkMode BRIDGE

Static value bridge for NetworkMode.

TRANSPARENT

public static final NetworkMode TRANSPARENT

Static value transparent for NetworkMode.

Constructor Details

NetworkMode

@Deprecated
public NetworkMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkMode value.

Method Details

fromString

public static NetworkMode fromString(String name)

Creates or finds a NetworkMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NetworkMode.

values

public static Collection values()

Gets known NetworkMode values.

Returns:

known NetworkMode values.

Applies to