Class Protocol

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

public final class Protocol extends com.azure.core.util.ExpandableStringEnum<Protocol>
The network protocol of the port.
  • Field Details

    • TCP

      public static final Protocol TCP
      TCP protocol.
    • UDP

      public static final Protocol UDP
      UDP 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.