Class EiaServiceOperator.EiaServiceUpdater

java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.EiaServiceOperator.EiaServiceUpdater
Enclosing class:
EiaServiceOperator

public class EiaServiceOperator.EiaServiceUpdater extends Object
Fluent builder for updating an existing EIA service. Each typed setter records a change operation along one of the spec's allowed patch paths (/bandwidth, /bandwidthCommit, /order/purchaseOrderNumber, and /routingProtocol/customerRoutes); save() sends them as one PATCH (an op/path/value array, content-type application/json) and returns the refreshed model.
eiaService.update().bandwidth(1000).save();
Author:
ianjones
  • Constructor Details

    • EiaServiceUpdater

      protected EiaServiceUpdater(String uuid)
  • Method Details

    • bandwidth

      public EiaServiceOperator.EiaServiceUpdater bandwidth(Integer bandwidth)
      Replaces the service bandwidth.
      Parameters:
      bandwidth - the new bandwidth
      Returns:
      this updater
    • bandwidthCommit

      public EiaServiceOperator.EiaServiceUpdater bandwidthCommit(Integer bandwidthCommit)
      Replaces the minimum bandwidth commit (for burst-billing variants).
      Parameters:
      bandwidthCommit - the new bandwidth commit
      Returns:
      this updater
    • purchaseOrderNumber

      public EiaServiceOperator.EiaServiceUpdater purchaseOrderNumber(String purchaseOrderNumber)
      Replaces the order purchase order number.
      Parameters:
      purchaseOrderNumber - the new purchase order number
      Returns:
      this updater
    • addCustomerRoute

      public EiaServiceOperator.EiaServiceUpdater addCustomerRoute(String ipBlockUuid)
      Adds a customer route referencing an IP block by UUID.
      Parameters:
      ipBlockUuid - the UUID of the IP block to advertise
      Returns:
      this updater
    • removeCustomerRoute

      public EiaServiceOperator.EiaServiceUpdater removeCustomerRoute(String ipBlockUuid)
      Removes the customer route for the IP block identified by the given UUID.
      Parameters:
      ipBlockUuid - the UUID of the IP block to stop advertising
      Returns:
      this updater
    • patch

      Adds an arbitrary change operation, for paths not covered by the typed setters above.
      Parameters:
      operation - the patch operation
      Returns:
      this updater
    • save

      public EiaService save()
      Applies the accumulated changes and returns the EIA service refreshed from the server.
      Returns:
      the updated EiaService