ContainerNetworkProtocol Class

public final class ContainerNetworkProtocol
extends ExpandableStringEnum<ContainerNetworkProtocol>

The protocol associated with the port.

Field Summary

Modifier and Type Field and Description
static final ContainerNetworkProtocol TCP

Static value TCP for ContainerNetworkProtocol.

static final ContainerNetworkProtocol UDP

Static value UDP for ContainerNetworkProtocol.

Constructor Summary

Constructor Description
ContainerNetworkProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContainerNetworkProtocol value.

Method Summary

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

Creates or finds a ContainerNetworkProtocol from its string representation.

static Collection<ContainerNetworkProtocol> values()

Gets known ContainerNetworkProtocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

TCP

public static final ContainerNetworkProtocol TCP

Static value TCP for ContainerNetworkProtocol.

UDP

public static final ContainerNetworkProtocol UDP

Static value UDP for ContainerNetworkProtocol.

Constructor Details

ContainerNetworkProtocol

@Deprecated
public ContainerNetworkProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContainerNetworkProtocol value.

Method Details

fromString

public static ContainerNetworkProtocol fromString(String name)

Creates or finds a ContainerNetworkProtocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ContainerNetworkProtocol.

values

public static Collection values()

Gets known ContainerNetworkProtocol values.

Returns:

known ContainerNetworkProtocol values.

Applies to