RoleAssignment.DefinitionStages.WithRole Interface
public interface WithRole
The stage of role assignment definition allowing specifying the role.
Method Summary
Modifier and Type | Method and Description |
---|---|
Role |
withBuiltInRole(BuiltInRole role)
Specifies the name of a built in role for this assignment. |
Role |
withRoleDefinition(String roleDefinitionId)
Specifies the ID of the custom role for this assignment. |
Method Details
withBuiltInRole
public WithScope withBuiltInRole(BuiltInRole role)
Specifies the name of a built in role for this assignment.
Parameters:
role
- the name of the role
Returns:
the next stage in role assignment definition
withRoleDefinition
public WithScope withRoleDefinition(String roleDefinitionId)
Specifies the ID of the custom role for this assignment.
Parameters:
roleDefinitionId
- ID of the custom role definition
Returns:
the next stage in role assignment definition
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java