java.lang.Object
com.azure.core.util.ExpandableStringEnum<Protocol>
com.azure.resourcemanager.network.models.Protocol
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class Protocol extends com.azure.core.util.ExpandableStringEnum<Protocol>
Network protocol.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Protocol
    Static value Http for Protocol.
    static final Protocol
    Static value Https for Protocol.
    static final Protocol
    Static value Icmp for Protocol.
    static final Protocol
    Static value Tcp for Protocol.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Protocol
    Creates or finds a Protocol from its string representation.
    Gets known Protocol values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, getValue, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TCP

      public static final Protocol TCP
      Static value Tcp for Protocol.
    • HTTP

      public static final Protocol HTTP
      Static value Http for Protocol.
    • HTTPS

      public static final Protocol HTTPS
      Static value Https for Protocol.
    • ICMP

      public static final Protocol ICMP
      Static value Icmp for Protocol.
  • Constructor Details

  • Method Details

    • fromString

      public static Protocol fromString(String name)
      Creates or finds a Protocol from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding Protocol.
    • values

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