Enum Class PhysicalPortType

java.lang.Object
java.lang.Enum<PhysicalPortType>
com.eqixiac.equinix.fabric.enums.PhysicalPortType
All Implemented Interfaces:
Serializable, Comparable<PhysicalPortType>, Constable

public enum PhysicalPortType extends Enum<PhysicalPortType>
Physical media/optic type of a Fabric physical port (the physicalPortsType attribute of PortRequest). _10GBASE_SMF is only applicable for IX ports. The leading underscores are required because Java identifiers may not begin with a digit; each constant carries its spec wire value (e.g. 10GBASE_LR), which Jackson uses for (de)serialization via JsonValue and JsonCreator. Unrecognized values deserialize to UNKNOWN.
Author:
ianjones
  • Enum Constant Details

  • Method Details

    • values

      public static PhysicalPortType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PhysicalPortType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      The wire value, with the digit-leading underscore stripped (e.g. 10GBASE_LR).
      Returns:
      the JSON wire value for this physical port type
    • fromString

      public static PhysicalPortType fromString(String value)
      Resolves a wire value to a constant, falling back to UNKNOWN for unrecognized inputs.
      Parameters:
      value - the wire value (e.g. 10GBASE_LR)
      Returns:
      the matching constant, or UNKNOWN