NetworkProtocol Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. network. models. NetworkProtocol
- com.
- com.
public final class NetworkProtocol
extends ExpandableStringEnum<NetworkProtocol>
Network Protocol.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Network |
ANY
Any. |
|
static final
Network |
ICMP
ICMP. |
|
static final
Network |
TCP
TCP. |
|
static final
Network |
UDP
UDP. |
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkProtocol() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Network |
fromString(String name)
Creates or finds a Network |
|
static
Collection<Network |
values()
Gets known Network |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ANY
public static final NetworkProtocol ANY
Any.
ICMP
public static final NetworkProtocol ICMP
ICMP.
TCP
public static final NetworkProtocol TCP
TCP.
UDP
public static final NetworkProtocol UDP
UDP.
Constructor Details
NetworkProtocol
@Deprecated
public NetworkProtocol()
Deprecated
Creates a new instance of NetworkProtocol value.
Method Details
fromString
public static NetworkProtocol fromString(String name)
Creates or finds a NetworkProtocol from its string representation.
Parameters:
Returns:
values
public static Collection<NetworkProtocol> values()
Gets known NetworkProtocol values.
Returns: