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

public final class Protocol extends com.azure.core.util.ExpandableStringEnum<Protocol>
Defines values for 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 ws for Protocol.
    static final Protocol
    Static value wss 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

    • HTTP

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

      public static final Protocol HTTPS
      Static value https for Protocol.
    • WS

      public static final Protocol WS
      Static value ws for Protocol.
    • WSS

      public static final Protocol WSS
      Static value wss 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.