Class RoleAssignmentProperties

java.lang.Object
com.azure.resourcemanager.authorization.models.RoleAssignmentProperties

public final class RoleAssignmentProperties extends Object
Role assignment properties.
  • Constructor Details

    • RoleAssignmentProperties

      public RoleAssignmentProperties()
  • Method Details

    • roleDefinitionId

      public String roleDefinitionId()
      Get the roleDefinitionId property: The role definition ID used in the role assignment.
      Returns:
      the roleDefinitionId value.
    • withRoleDefinitionId

      public RoleAssignmentProperties withRoleDefinitionId(String roleDefinitionId)
      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

      public String 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

      public RoleAssignmentProperties withPrincipalId(String principalId)
      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.