Class NetworkOperator.NetworkUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.NetworkOperator.NetworkUpdater
- Enclosing class:
NetworkOperator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReplaces the network name.notifications(List<Notification> notifications) Replaces the notification configuration.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 network refreshed from the server's response.
-
Constructor Details
-
NetworkUpdater
-
-
Method Details
-
name
Replaces the network name.- Parameters:
name- the new name- Returns:
- this updater
-
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
-