Class GatewayMacsecCakPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.GatewayMacsecCakPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GatewayMacsecCakPatch extends com.ibm.cloud.sdk.core.service.model.GenericModelPatch 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGatewayMacsecCakPatch.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asPatch()Construct a JSON merge-patch from the GatewayMacsecCakPatch.GatewayMacsecCakKeyReferencekey()Gets the key.Stringname()Gets the name.GatewayMacsecCakPatch.BuildernewBuilder()New builder.
-
-
-
Method Detail
-
newBuilder
public GatewayMacsecCakPatch.Builder newBuilder()
New builder.- Returns:
- a GatewayMacsecCakPatch builder
-
key
public GatewayMacsecCakKeyReference key()
Gets the key. A reference to a key stored in a key management service.- Returns:
- the key
-
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
-
-