CmkKekIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.CmkKekIdentity

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 CmkKekIdentity class.

Method Summary

Modifier and Type Method and Description
static CmkKekIdentity fromJson(JsonReader jsonReader)

Reads an instance of CmkKekIdentity from the JsonReader.

String identityId()

Get the identityId property: The managed identity to be used which has access permissions to the Key Vault.

IdentityType identityType()

Get the identityType property: The identity type.

JsonWriter toJson(JsonWriter jsonWriter)
CmkKekIdentity withIdentityId(String identityId)

Set the identityId property: The managed identity to be used which has access permissions to the Key Vault.

CmkKekIdentity withIdentityType(IdentityType identityType)

Set the identityType property: The identity type.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of CmkKekIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CmkKekIdentity.

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:

the identityId value.

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:

the identityType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

identityId - the identityId value to set.

Returns:

the CmkKekIdentity object itself.

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:

identityType - the identityType value to set.

Returns:

the CmkKekIdentity object itself.

Applies to