CustomerManagedKeyEncryptionKeyIdentity Class

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

public final class 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.

IdentityType identityType()

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

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.

identityType

public IdentityType identityType()

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

Returns:

the identityType value.

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