Class EiaServiceOperator.EiaServiceUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.EiaServiceOperator.EiaServiceUpdater
- Enclosing class:
EiaServiceOperator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomerRoute(String ipBlockUuid) Adds a customer route referencing an IP block by UUID.Replaces the service bandwidth.bandwidthCommit(Integer bandwidthCommit) Replaces the minimum bandwidth commit (for burst-billing variants).patch(PatchOperation operation) Adds an arbitrary change operation, for paths not covered by the typed setters above.purchaseOrderNumber(String purchaseOrderNumber) Replaces the order purchase order number.removeCustomerRoute(String ipBlockUuid) Removes the customer route for the IP block identified by the given UUID.save()Applies the accumulated changes and returns the EIA service refreshed from the server.
-
Constructor Details
-
EiaServiceUpdater
-
-
Method Details
-
bandwidth
Replaces the service bandwidth.- Parameters:
bandwidth- the new bandwidth- Returns:
- this updater
-
bandwidthCommit
Replaces the minimum bandwidth commit (for burst-billing variants).- Parameters:
bandwidthCommit- the new bandwidth commit- Returns:
- this updater
-
purchaseOrderNumber
Replaces the order purchase order number.- Parameters:
purchaseOrderNumber- the new purchase order number- Returns:
- this updater
-
addCustomerRoute
Adds a customer route referencing an IP block by UUID.- Parameters:
ipBlockUuid- the UUID of the IP block to advertise- Returns:
- this updater
-
removeCustomerRoute
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
Applies the accumulated changes and returns the EIA service refreshed from the server.- Returns:
- the updated
EiaService
-