Class SetRoleDefinitionOptions
java.lang.Object
com.azure.security.keyvault.administration.models.SetRoleDefinitionOptions
Represents the configurable options to create or update a
role definition
.-
Constructor Summary
ConstructorDescriptionSetRoleDefinitionOptions
(KeyVaultRoleScope roleScope) Creates an instance ofSetRoleDefinitionOptions
with an automatically generated name.SetRoleDefinitionOptions
(KeyVaultRoleScope roleScope, String roleDefinitionName) Creates an instance ofSetRoleDefinitionOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGet therole definition
's assignable scopes.Get the role description.Get therole definition
'spermissions
.Get the name of theKeyVaultRoleDefinition
to create or update.Get the role name.Get therole scope
of theKeyVaultRoleDefinition
to create or update.setAssignableScopes
(List<KeyVaultRoleScope> assignableScopes) Set therole definition
's assignable scopes.setDescription
(String description) Set the role description.setPermissions
(List<KeyVaultPermission> permissions) Set therole definition
'spermissions
.setRoleName
(String roleName) Set the role name.
-
Constructor Details
-
SetRoleDefinitionOptions
Creates an instance ofSetRoleDefinitionOptions
with an automatically generated name.- Parameters:
roleScope
- Therole scope
of theKeyVaultRoleDefinition
to create. Managed HSM only supports '/'.
-
SetRoleDefinitionOptions
Creates an instance ofSetRoleDefinitionOptions
.- Parameters:
roleScope
- Therole scope
of theKeyVaultRoleDefinition
to create. Managed HSM only supports '/'.roleDefinitionName
- The name of theKeyVaultRoleDefinition
. It can be any valid UUID.
-
-
Method Details
-
getRoleScope
Get therole scope
of theKeyVaultRoleDefinition
to create or update.- Returns:
- The
role scope
of theKeyVaultRoleDefinition
.
-
getRoleDefinitionName
Get the name of theKeyVaultRoleDefinition
to create or update.- Returns:
- The name of the
KeyVaultRoleDefinition
.
-
getRoleName
Get the role name.- Returns:
- The role name.
-
setRoleName
Set the role name.- Parameters:
roleName
- The role name to set.- Returns:
- The updated
SetRoleDefinitionOptions
object.
-
getDescription
Get the role description.- Returns:
- The role description.
-
setDescription
Set the role description.- Parameters:
description
- The role description to set.- Returns:
- The updated
SetRoleDefinitionOptions
object.
-
getPermissions
Get therole definition
'spermissions
.- Returns:
- The
role definition
'spermissions
.
-
setPermissions
Set therole definition
'spermissions
.- Parameters:
permissions
- Therole definition
'spermissions
to set.- Returns:
- The updated
SetRoleDefinitionOptions
object.
-
getAssignableScopes
Get therole definition
's assignable scopes.- Returns:
- The
role definition
's assignable scopes.
-
setAssignableScopes
Set therole definition
's assignable scopes.- Parameters:
assignableScopes
- Therole definition
's assignable scopes to set.- Returns:
- The updated
SetRoleDefinitionOptions
object.
-