Class PrecisionTimeOperator.PrecisionTimeUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.PrecisionTimeOperator.PrecisionTimeUpdater
- Enclosing class:
PrecisionTimeOperator
Fluent builder for updating an existing precision time service 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.
timeService.update().name("New-Name").save();- Author:
- ianjones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangePackage(PrecisionTimePackageCode packageCode) Replaces the time service package (tier).Replaces the time service name.patch(PatchOperation operation) Adds an arbitrary JSON Patch operation, for paths not covered by the typed setters above (e.g.save()Applies the accumulated changes and returns the time service refreshed from the server.
-
Constructor Details
-
PrecisionTimeUpdater
-
-
Method Details
-
name
Replaces the time service name.- Parameters:
name- the new name- Returns:
- this updater
-
changePackage
public PrecisionTimeOperator.PrecisionTimeUpdater changePackage(PrecisionTimePackageCode packageCode) Replaces the time service package (tier).- Parameters:
packageCode- the new package code- Returns:
- this updater
-
patch
Adds an arbitrary JSON Patch operation, for paths not covered by the typed setters above (e.g./ipv4or/ntpAdvancedConfiguration).- Parameters:
operation- the patch operation- Returns:
- this updater
-
save
Applies the accumulated changes and returns the time service refreshed from the server.- Returns:
- the updated
PrecisionTime
-