Class RoutingProtocolOperator.RoutingProtocolUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.RoutingProtocolOperator.RoutingProtocolUpdater
- Enclosing class:
RoutingProtocolOperator
Fluent builder for updating an existing routing protocol. Each typed setter records a
replace change operation; save() sends them as one PATCH
(an op/path/value array, content-type application/json) and returns the refreshed model.
Routing protocols are parent-keyed, so both the parent connection id and the routing protocol uuid are captured up front.
routingProtocol.update(connectionId).name("New-Name").save();-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbgpIpv4Enabled(Boolean enabled) Replaces whether BGP IPv4 is enabled on this routing protocol.bgpIpv6Enabled(Boolean enabled) Replaces whether BGP IPv6 is enabled on this routing protocol.Replaces the routing protocol name.patch(PatchOperation operation) Adds an arbitrary change operation, for paths not covered by the typed setters above.save()Applies the accumulated changes and returns the routing protocol refreshed from the server.
-
Constructor Details
-
RoutingProtocolUpdater
-
-
Method Details
-
name
Replaces the routing protocol name.- Parameters:
name- the new name- Returns:
- this updater
-
bgpIpv4Enabled
Replaces whether BGP IPv4 is enabled on this routing protocol.- Parameters:
enabled- the new enabled flag- Returns:
- this updater
-
bgpIpv6Enabled
Replaces whether BGP IPv6 is enabled on this routing protocol.- Parameters:
enabled- the new enabled flag- Returns:
- this updater
-
patch
Adds an arbitrary change 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 routing protocol refreshed from the server.- Returns:
- the updated
RoutingProtocol
-