Enum Class PhysicalPortType
- All Implemented Interfaces:
Serializable, Comparable<PhysicalPortType>, Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalPortTypefromString(String value) Resolves a wire value to a constant, falling back toUNKNOWNfor unrecognized inputs.getValue()The wire value, with the digit-leading underscore stripped (e.g.static PhysicalPortTypeReturns the enum constant of this class with the specified name.static PhysicalPortType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
_1000BASE_LX
-
_10GBASE_LR
-
_100GBASE_LR4
-
_10GBASE_ER
-
_1000BASE_SX
-
_10GBASE_SMF
-
_400GBASE_LR4
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
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
-