Class RoleAssignmentProperties
java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentProperties
Role assignment properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The principal ID assigned to the role.Get the roleDefinitionId property: The role definition ID used in the role assignment.voidvalidate()Validates the instance.withPrincipalId(String principalId) Set the principalId property: The principal ID assigned to the role.withRoleDefinitionId(String roleDefinitionId) Set the roleDefinitionId property: The role definition ID used in the role assignment.
-
Constructor Details
-
RoleAssignmentProperties
public RoleAssignmentProperties()
-
-
Method Details
-
roleDefinitionId
Get the roleDefinitionId property: The role definition ID used in the role assignment.- Returns:
- the roleDefinitionId value.
-
withRoleDefinitionId
Set the roleDefinitionId property: The role definition ID used in the role assignment.- Parameters:
roleDefinitionId- the roleDefinitionId value to set.- Returns:
- the RoleAssignmentProperties object itself.
-
principalId
Get the principalId property: 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.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: 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.- Parameters:
principalId- the principalId value to set.- Returns:
- the RoleAssignmentProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-