Class NetworkOperator.NetworkUpdater

java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.NetworkOperator.NetworkUpdater
Enclosing class:
NetworkOperator

public class NetworkOperator.NetworkUpdater extends Object
Fluent builder for updating an existing network via RFC 6902 JSON Patch. Each setter records a replace operation; save() sends the accumulated operations as a single PATCH with content-type application/json-patch+json and returns the refreshed model.
network.update().name("New-Name").save();
Author:
ianjones
  • Constructor Details

    • NetworkUpdater

      protected NetworkUpdater(String uuid)
  • Method Details

    • name

      Replaces the network name.
      Parameters:
      name - the new name
      Returns:
      this updater
    • notifications

      public NetworkOperator.NetworkUpdater notifications(List<Notification> notifications)
      Replaces the notification configuration.
      Parameters:
      notifications - the new notification list
      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 Network save()
      Applies the accumulated changes and returns the network refreshed from the server's response.
      Returns:
      the updated Network