Class NetworkProtocol
java.lang.Object
com.azure.core.util.ExpandableStringEnum<NetworkProtocol>
com.azure.resourcemanager.network.models.NetworkProtocol
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class NetworkProtocol
extends com.azure.core.util.ExpandableStringEnum<NetworkProtocol>
Network Protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkProtocolStatic value Any for NetworkProtocol.static final NetworkProtocolStatic value ICMP for NetworkProtocol.static final NetworkProtocolStatic value TCP for NetworkProtocol.static final NetworkProtocolStatic value UDP for NetworkProtocol. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkProtocolfromString(String name) Creates or finds a NetworkProtocol from its string representation.static Collection<NetworkProtocol> values()Gets known NetworkProtocol values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ANY
Static value Any for NetworkProtocol. -
TCP
Static value TCP for NetworkProtocol. -
UDP
Static value UDP for NetworkProtocol. -
ICMP
Static value ICMP for NetworkProtocol.
-
-
Constructor Details
-
NetworkProtocol
Deprecated.Use thefromString(String)factory method.Creates a new instance of NetworkProtocol value.
-
-
Method Details
-
fromString
Creates or finds a NetworkProtocol from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding NetworkProtocol.
-
values
Gets known NetworkProtocol values.- Returns:
- known NetworkProtocol values.
-
fromString(String)factory method.