NetworkPolicy Class

public final class NetworkPolicy
extends ExpandableStringEnum<NetworkPolicy>

Network policy used for building the Kubernetes network.

Field Summary

Modifier and Type Field and Description
static final NetworkPolicy AZURE

Static value azure for NetworkPolicy.

static final NetworkPolicy CALICO

Static value calico for NetworkPolicy.

static final NetworkPolicy CILIUM

Static value cilium for NetworkPolicy.

static final NetworkPolicy NONE

Static value none for NetworkPolicy.

Constructor Summary

Constructor Description
NetworkPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkPolicy value.

Method Summary

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

Creates or finds a NetworkPolicy from its string representation.

static Collection<NetworkPolicy> values()

Gets known NetworkPolicy values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AZURE

public static final NetworkPolicy AZURE

Static value azure for NetworkPolicy.

CALICO

public static final NetworkPolicy CALICO

Static value calico for NetworkPolicy.

CILIUM

public static final NetworkPolicy CILIUM

Static value cilium for NetworkPolicy.

NONE

public static final NetworkPolicy NONE

Static value none for NetworkPolicy.

Constructor Details

NetworkPolicy

@Deprecated
public NetworkPolicy()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkPolicy value.

Method Details

fromString

public static NetworkPolicy fromString(String name)

Creates or finds a NetworkPolicy from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NetworkPolicy.

values

public static Collection values()

Gets known NetworkPolicy values.

Returns:

known NetworkPolicy values.

Applies to