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 Details

    • ANY

      public static final NetworkProtocol ANY
      Static value Any for NetworkProtocol.
    • TCP

      public static final NetworkProtocol TCP
      Static value TCP for NetworkProtocol.
    • UDP

      public static final NetworkProtocol UDP
      Static value UDP for NetworkProtocol.
    • ICMP

      public static final NetworkProtocol ICMP
      Static value ICMP for NetworkProtocol.
  • Constructor Details

    • NetworkProtocol

      @Deprecated public NetworkProtocol()
      Deprecated.
      Use the fromString(String) factory method.
      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:
      name - a name to look for.
      Returns:
      the corresponding NetworkProtocol.
    • values

      public static Collection<NetworkProtocol> values()
      Gets known NetworkProtocol values.
      Returns:
      known NetworkProtocol values.