Class GatewayMacsecCakPatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class GatewayMacsecCakPatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Patch fields for CAK of MACsec configuration on a direct link. When rotating a CAK, patch both the `name` and `key` fields simultaneously. Both must have new values and cannot match with another CAK. Neither `name` nor `key` is allowed to be patched on its own.
    • Method Detail

      • name

        public String name()
        Gets the name. The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's `name` must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of the `key`, must match on the MACsec peers.
        Returns:
        the name
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the GatewayMacsecCakPatch. Note that properties of the GatewayMacsecCakPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.
        Returns:
        a JSON merge-patch for the GatewayMacsecCakPatch