Class RouteAggregationRuleOperator.RouteAggregationRuleUpdater
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.RouteAggregationRuleOperator.RouteAggregationRuleUpdater
- Enclosing class:
RouteAggregationRuleOperator
Fluent builder for updating an existing route aggregation rule. 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.
rule.update(routeAggregationId).name("New-Name").save();-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Replaces the route aggregation rule description.Replaces the route aggregation rule name.patch(PatchOperation operation) Adds an arbitrary change operation, for paths not covered by the typed setters above.Typed variant ofprefix(String).Replaces the route aggregation rule prefix.save()Applies the accumulated changes and returns the rule refreshed from the server.
-
Constructor Details
-
RouteAggregationRuleUpdater
-
-
Method Details
-
name
Replaces the route aggregation rule name.- Parameters:
name- the new name- Returns:
- this updater
-
prefix
Replaces the route aggregation rule prefix.- Parameters:
prefix- the new prefix- Returns:
- this updater
-
prefix
Typed variant ofprefix(String). The prefix is a network in CIDR form, so theIPAddressshould carry its subnet length (e.g.IPAddress.parse("10.0.0.0/8")); it is serialized viaIPAddress.toCidr(), producing the identical wire value to the String setter.- Parameters:
prefix- the new prefix- Returns:
- this updater
-
description
Replaces the route aggregation rule description.- Parameters:
description- the new description- 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 rule refreshed from the server.- Returns:
- the updated
RouteAggregationRule
-