Class MetrosImpl

java.lang.Object
com.eqixiac.equinix.fabric.client.implementation.MetrosImpl
All Implemented Interfaces:
Metros

public class MetrosImpl extends Object implements Metros
Author:
ianjones
  • Constructor Details

    • MetrosImpl

      public MetrosImpl()
  • Method Details

    • list

      public PaginatedList<Metro> list()
      Description copied from interface: Metros
      Lists all available Equinix metro locations.
      Specified by:
      list in interface Metros
      Returns:
      a paginated list of metros
    • list

      public PaginatedList<Metro> list(MetroPresence metroPresence)
      Description copied from interface: Metros
      Lists metro locations filtered by the specified presence type.
      Specified by:
      list in interface Metros
      Parameters:
      metroPresence - the presence type to filter metros by (e.g., available for connections)
      Returns:
      a paginated list of metros matching the presence filter
    • getByMetroCode

      public Metro getByMetroCode(MetroCode metroCode)
      Description copied from interface: Metros
      Retrieves a single metro by its metro code.
      Specified by:
      getByMetroCode in interface Metros
      Parameters:
      metroCode - the code identifying the metro location (e.g., SV, DC, AM)
      Returns:
      the metro matching the given code
    • getByMetroCode

      public Metro getByMetroCode(String metroCode)
      Description copied from interface: Metros
      Retrieves a single metro by its raw metro code string. Use this for a metro not listed by the MetroCode enum (e.g. one added after this SDK was built).
      Specified by:
      getByMetroCode in interface Metros
      Parameters:
      metroCode - the code identifying the metro location (e.g., "SV")
      Returns:
      the metro matching the given code
    • getByMetroId

      public Metro getByMetroId(MetroId metroId)
      Description copied from interface: Metros
      Retrieves a single metro by its MetroId.
      Specified by:
      getByMetroId in interface Metros
      Parameters:
      metroId - the forward-compatible identifier of the metro location
      Returns:
      the metro matching the given id