Class ChangeOperationUpdate

java.lang.Object
com.eqixiac.equinix.internetaccess.model.json.creators.ChangeOperationUpdate

public final class ChangeOperationUpdate extends Object
A single change operation in the ChangeRequest body of an Equinix Internet Access (EIA) v2 service update (PATCH /internetAccess/v2/services/{serviceId}).

Shaped like a JSON Patch operation — {"op": ..., "path": ..., "value": ...} — but sent as a plain application/json array (not application/json-patch+json), and with an optional nested order.

Per the EIA v2 specification the allowed op values are replace, add and remove, and the allowed path values are /bandwidth, /routingProtocol/ipv4/customerRoutes[*] and /routingProtocol/ipv6/customerRoutes[*]. Only one replace operation is allowed for the /bandwidth path.

  • Constructor Details

    • ChangeOperationUpdate

      public ChangeOperationUpdate(String op, String path, String value, ServiceOrderRequest order)
      Parameters:
      op - the operation name (replace, add, or remove)
      path - the path to the updated parameter (e.g. /bandwidth)
      value - the new value for the updated parameter
      order - the associated service order, or null if not applicable
  • Method Details

    • replace

      public static ChangeOperationUpdate replace(String path, String value)
      Creates a replace operation, setting path to value.
      Parameters:
      path - the path to the target parameter (e.g. /bandwidth)
      value - the replacement value
      Returns:
      the operation
    • add

      public static ChangeOperationUpdate add(String path, String value)
      Creates an add operation, adding value at path.
      Parameters:
      path - the path to the target parameter
      value - the value to add
      Returns:
      the operation
    • remove

      public static ChangeOperationUpdate remove(String path)
      Creates a remove operation, removing the parameter at path.
      Parameters:
      path - the path to the target parameter
      Returns:
      the operation