Class CloudRouterOperator.CloudRouterUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.CloudRouterOperator.CloudRouterUpdater
- Enclosing class:
CloudRouterOperator
Fluent builder for updating an existing cloud router via RFC 6902 JSON Patch. Each typed
setter records a
replace operation; save() sends them as one
PATCH with content-type application/json-patch+json and returns the refreshed model.
cloudRouter.update().name("New-Name").save();-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangePackage(GatewayPackageCode packageCode) Replaces the cloud router package (tier).Replaces the cloud router name.patch(PatchOperation operation) Adds an arbitrary JSON Patch operation, for paths not covered by the typed setters above.save()Applies the accumulated changes and returns the cloud router refreshed from the server.termLength(Integer termLength) Replaces the order term length (/order/termLength), e.g. to move the cloud router onto (or extend) a term commitment (Fabric releases R2025.6/R2026.1).
-
Constructor Details
-
CloudRouterUpdater
-
-
Method Details
-
name
Replaces the cloud router name.- Parameters:
name- the new name- Returns:
- this updater
-
changePackage
Replaces the cloud router package (tier).- Parameters:
packageCode- the new package code- Returns:
- this updater
-
termLength
Replaces the order term length (/order/termLength), e.g. to move the cloud router onto (or extend) a term commitment (Fabric releases R2025.6/R2026.1).- Parameters:
termLength- the new term length in months (for example 12, 24 or 36)- Returns:
- this updater
-
patch
Adds an arbitrary JSON Patch 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 cloud router refreshed from the server.- Returns:
- the updated
CloudRouter
-