Class EiaRoutingProtocolRequest

java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.EiaRoutingProtocolRequest

public class EiaRoutingProtocolRequest extends Object
Routing protocol configuration for an Equinix Internet Access (EIA) service create request.

Faithful to the spec's InternetAccessRoutingProtocolRequest (and its BGP variant): a type discriminator, a list of customer routes referencing IP block UUIDs, a list of connection UUIDs, plus the BGP-only fields (exportPolicy, the asn reference and bgpAuthKey) which are simply omitted (NON_NULL) for the DIRECT and STATIC variants.

The spec-deprecated customerAsn and customerAsnRange are not sent: name the customer ASN with asn(String), the uuid of an ASN resource (/fabric/v4/asns). bgpAuthKey stays on the request, where 4.34.0 does not deprecate it; on the response it is replaced by bgpAuthType.

  • Constructor Details

    • EiaRoutingProtocolRequest

      public EiaRoutingProtocolRequest(EiaRoutingProtocolType type)
      Creates a routing protocol request of the given type.
      Parameters:
      type - the routing protocol type (BGP, DIRECT, or STATIC)
  • Method Details

    • addCustomerRoute

      public EiaRoutingProtocolRequest addCustomerRoute(String ipBlockUuid)
      Adds a customer route referencing an existing IP block by UUID.
      Parameters:
      ipBlockUuid - the UUID of the IP block to advertise
      Returns:
      this request
    • addConnection

      public EiaRoutingProtocolRequest addConnection(String connectionUuid)
      Adds a connection reference by UUID.
      Parameters:
      connectionUuid - the UUID of the connection
      Returns:
      this request
    • exportPolicy

      public EiaRoutingProtocolRequest exportPolicy(String exportPolicy)
      Sets the BGP export policy (e.g. FULL, DEFAULT, FULL_DEFAULT, PARTIAL).
      Parameters:
      exportPolicy - the export policy
      Returns:
      this request
    • asn

      public EiaRoutingProtocolRequest asn(String asnUuid)
      Sets the ASN resource the BGP session uses ("asn": {"uuid": ...}).
      Parameters:
      asnUuid - the uuid of an ASN resource
      Returns:
      this request
    • bgpAuthKey

      public EiaRoutingProtocolRequest bgpAuthKey(String bgpAuthKey)
      Sets the BGP authentication key.
      Parameters:
      bgpAuthKey - the BGP authentication key
      Returns:
      this request