Поделиться через


CustomerManagedKeyEncryptionKeyIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.CustomerManagedKeyEncryptionKeyIdentity

Implements

public final class CustomerManagedKeyEncryptionKeyIdentity
implements JsonSerializable<CustomerManagedKeyEncryptionKeyIdentity>

All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

Constructor Summary

Constructor Description
CustomerManagedKeyEncryptionKeyIdentity()

Creates an instance of CustomerManagedKeyEncryptionKeyIdentity class.

Method Summary

Modifier and Type Method and Description
UUID delegatedIdentityClientId()

Get the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url.

static CustomerManagedKeyEncryptionKeyIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomerManagedKeyEncryptionKeyIdentity from the JsonReader.

IdentityType identityType()

Get the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.

JsonWriter toJson(JsonWriter jsonWriter)
String userAssignedIdentityResourceId()

Get the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key Url.

void validate()

Validates the instance.

CustomerManagedKeyEncryptionKeyIdentity withDelegatedIdentityClientId(UUID delegatedIdentityClientId)

Set the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url.

CustomerManagedKeyEncryptionKeyIdentity withIdentityType(IdentityType identityType)

Set the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.

CustomerManagedKeyEncryptionKeyIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)

Set the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key Url.

Methods inherited from java.lang.Object

Constructor Details

CustomerManagedKeyEncryptionKeyIdentity

public CustomerManagedKeyEncryptionKeyIdentity()

Creates an instance of CustomerManagedKeyEncryptionKeyIdentity class.

Method Details

delegatedIdentityClientId

public UUID delegatedIdentityClientId()

Get the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.

Returns:

the delegatedIdentityClientId value.

fromJson

public static CustomerManagedKeyEncryptionKeyIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomerManagedKeyEncryptionKeyIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomerManagedKeyEncryptionKeyIdentity 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 CustomerManagedKeyEncryptionKeyIdentity.

identityType

public IdentityType identityType()

Get the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.

Returns:

the identityType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userAssignedIdentityResourceId

public String userAssignedIdentityResourceId()

Get the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.

Returns:

the userAssignedIdentityResourceId value.

validate

public void validate()

Validates the instance.

withDelegatedIdentityClientId

public CustomerManagedKeyEncryptionKeyIdentity withDelegatedIdentityClientId(UUID delegatedIdentityClientId)

Set the delegatedIdentityClientId property: delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.

Parameters:

delegatedIdentityClientId - the delegatedIdentityClientId value to set.

Returns:

the CustomerManagedKeyEncryptionKeyIdentity object itself.

withIdentityType

public CustomerManagedKeyEncryptionKeyIdentity withIdentityType(IdentityType identityType)

Set the identityType property: Values can be systemAssignedIdentity or userAssignedIdentity.

Parameters:

identityType - the identityType value to set.

Returns:

the CustomerManagedKeyEncryptionKeyIdentity object itself.

withUserAssignedIdentityResourceId

public CustomerManagedKeyEncryptionKeyIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)

Set the userAssignedIdentityResourceId property: user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.

Parameters:

userAssignedIdentityResourceId - the userAssignedIdentityResourceId value to set.

Returns:

the CustomerManagedKeyEncryptionKeyIdentity object itself.

Applies to