CmkKekIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. CmkKekIdentity
- com.
Implements
public final class CmkKekIdentity
implements JsonSerializable<CmkKekIdentity>
The details of the managed identity used for CMK.
Constructor Summary
| Constructor | Description |
|---|---|
| CmkKekIdentity() |
Creates an instance of Cmk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Cmk |
fromJson(JsonReader jsonReader)
Reads an instance of Cmk |
| String |
identityId()
Get the identity |
|
Identity |
identityType()
Get the identity |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Cmk |
withIdentityId(String identityId)
Set the identity |
|
Cmk |
withIdentityType(IdentityType identityType)
Set the identity |
Methods inherited from java.lang.Object
Constructor Details
CmkKekIdentity
public CmkKekIdentity()
Creates an instance of CmkKekIdentity class.
Method Details
fromJson
public static CmkKekIdentity fromJson(JsonReader jsonReader)
Reads an instance of CmkKekIdentity from the JsonReader.
Parameters:
Returns:
Throws:
identityId
public String identityId()
Get the identityId property: The managed identity to be used which has access permissions to the Key Vault. Provide a value here in case identity types: 'UserAssigned' only.
Returns:
identityType
public IdentityType identityType()
Get the identityType property: The identity type. 'SystemAssigned' and 'UserAssigned' are mutually exclusive. 'SystemAssigned' will use implicitly created managed identity.
Returns:
toJson
withIdentityId
public CmkKekIdentity withIdentityId(String identityId)
Set the identityId property: The managed identity to be used which has access permissions to the Key Vault. Provide a value here in case identity types: 'UserAssigned' only.
Parameters:
Returns:
withIdentityType
public CmkKekIdentity withIdentityType(IdentityType identityType)
Set the identityType property: The identity type. 'SystemAssigned' and 'UserAssigned' are mutually exclusive. 'SystemAssigned' will use implicitly created managed identity.
Parameters:
Returns: