Class CloudRouterOperator.CloudRouterUpdater

java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.CloudRouterOperator.CloudRouterUpdater
Enclosing class:
CloudRouterOperator

public class CloudRouterOperator.CloudRouterUpdater extends Object
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 Details

    • CloudRouterUpdater

      protected CloudRouterUpdater(String uuid)
  • Method Details

    • name

      Replaces the cloud router name.
      Parameters:
      name - the new name
      Returns:
      this updater
    • changePackage

      public CloudRouterOperator.CloudRouterUpdater changePackage(GatewayPackageCode packageCode)
      Replaces the cloud router package (tier).
      Parameters:
      packageCode - the new package code
      Returns:
      this updater
    • termLength

      public CloudRouterOperator.CloudRouterUpdater 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).
      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

      public CloudRouter save()
      Applies the accumulated changes and returns the cloud router refreshed from the server.
      Returns:
      the updated CloudRouter