Class KeyVaultRoleAssignmentProperties
- java.lang.Object
-
- com.azure.security.keyvault.administration.models.KeyVaultRoleAssignmentProperties
-
public final class KeyVaultRoleAssignmentProperties extends Object
A class that defines a role assignment's properties.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultRoleAssignmentProperties(String roleDefinitionId, String principalId, KeyVaultRoleScope scope)
Creates a newrole assignment properties
object with the specified details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrincipalId()
Get the principal ID assigned to the role.String
getRoleDefinitionId()
Get therole definition
ID used in therole assignment
.KeyVaultRoleScope
getScope()
Get therole assignment
scope
.
-
-
-
Constructor Detail
-
KeyVaultRoleAssignmentProperties
public KeyVaultRoleAssignmentProperties(String roleDefinitionId, String principalId, KeyVaultRoleScope scope)
Creates a newrole assignment properties
object with the specified details.- Parameters:
roleDefinitionId
- Therole definition
ID used in therole assignment
.principalId
- The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.*scope
- Thescope
of thisrole assignment
.
-
-
Method Detail
-
getRoleDefinitionId
public String getRoleDefinitionId()
Get therole definition
ID used in therole assignment
.- Returns:
- The
role definition
ID.
-
getPrincipalId
public String getPrincipalId()
Get the principal ID assigned to the role.- Returns:
- The principal ID.
-
getScope
public KeyVaultRoleScope getScope()
Get therole assignment
scope
.- Returns:
- The
role assignment
scope
.
-
-