Class MetroRef

java.lang.Object
com.eqixiac.equinix.fabric.model.implementation.MetroRef
Direct Known Subclasses:
MetroSummary

public class MetroRef extends Object
  • Constructor Details

    • MetroRef

      public MetroRef()
  • Method Details

    • getCode

      public MetroCode getCode()
      The metro code as a MetroCode enum, or MetroCode.UNKNOWN for a metro this enum does not list. Prefer metroId() when you need the exact code of an unlisted metro.
      Returns:
      the metro code enum constant (never null; UNKNOWN if unlisted)
    • metroId

      public MetroId metroId()
      The metro's code as a forward-compatible MetroId, preserving the exact wire value even for metros absent from the MetroCode enum.
      Returns:
      the metro id, or null if the API returned no code