Class KeyVaultRoleDefinition
- java.lang.Object
-
- com.azure.security.keyvault.administration.models.KeyVaultRoleDefinition
-
public final class KeyVaultRoleDefinition extends Object
A class that defines a role.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultRoleDefinition(String id, String name, KeyVaultRoleDefinitionType type, String roleName, String description, KeyVaultRoleType roleType, List<KeyVaultPermission> permissions, List<KeyVaultRoleScope> assignableScopes)
Creates a newrole definition
with the specified details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<KeyVaultRoleScope>
getAssignableScopes()
Get therole definition
's assignable scopes.String
getDescription()
Get the role description.String
getId()
Get therole definition
ID.String
getName()
Get therole definition
name.List<KeyVaultPermission>
getPermissions()
Get therole definition
'spermissions
.String
getRoleName()
Get the role name.KeyVaultRoleType
getRoleType()
Get the role type.KeyVaultRoleDefinitionType
getType()
Get therole definition type
.
-
-
-
Constructor Detail
-
KeyVaultRoleDefinition
public KeyVaultRoleDefinition(String id, String name, KeyVaultRoleDefinitionType type, String roleName, String description, KeyVaultRoleType roleType, List<KeyVaultPermission> permissions, List<KeyVaultRoleScope> assignableScopes)
Creates a newrole definition
with the specified details.- Parameters:
id
- The ID for thisrole definition
.name
- The name for thisrole definition
.type
- The type of thisrole definition
.roleName
- The name of the role.description
- The description of thisrole definition
.roleType
- The type of the role.permissions
- Thepermissions
therole definition
has.assignableScopes
- The assignable scopes of therole definition
.
-
-
Method Detail
-
getId
public String getId()
Get therole definition
ID.- Returns:
- The
role definition
ID.
-
getName
public String getName()
Get therole definition
name.- Returns:
- The
role definition
name.
-
getType
public KeyVaultRoleDefinitionType getType()
Get therole definition type
.- Returns:
- The
role definition type
.
-
getRoleName
public String getRoleName()
Get the role name.- Returns:
- The role name.
-
getDescription
public String getDescription()
Get the role description.- Returns:
- The role description.
-
getRoleType
public KeyVaultRoleType getRoleType()
Get the role type.- Returns:
- The role type.
-
getPermissions
public List<KeyVaultPermission> getPermissions()
Get therole definition
'spermissions
.- Returns:
- The
role definition
'spermissions
.
-
getAssignableScopes
public List<KeyVaultRoleScope> getAssignableScopes()
Get therole definition
's assignable scopes.- Returns:
- The
role definition
's assignable scopes.
-
-