_propDict)) { return $this->_propDict["name"]; } else { return null; } } /** * Sets the name * * @param string $val The name * * @return PrivilegedRole */ public function setName($val) { $this->_propDict["name"] = $val; return $this; } /** * Gets the assignments * * @return array|null The assignments */ public function getAssignments() { if (array_key_exists("assignments", $this->_propDict)) { return $this->_propDict["assignments"]; } else { return null; } } /** * Sets the assignments * * @param PrivilegedRoleAssignment[] $val The assignments * * @return PrivilegedRole */ public function setAssignments($val) { $this->_propDict["assignments"] = $val; return $this; } /** * Gets the settings * * @return PrivilegedRoleSettings|null The settings */ public function getSettings() { if (array_key_exists("settings", $this->_propDict)) { if (is_a($this->_propDict["settings"], "\Beta\Microsoft\Graph\Model\PrivilegedRoleSettings") || is_null($this->_propDict["settings"])) { return $this->_propDict["settings"]; } else { $this->_propDict["settings"] = new PrivilegedRoleSettings($this->_propDict["settings"]); return $this->_propDict["settings"]; } } return null; } /** * Sets the settings * * @param PrivilegedRoleSettings $val The settings * * @return PrivilegedRole */ public function setSettings($val) { $this->_propDict["settings"] = $val; return $this; } /** * Gets the summary * * @return PrivilegedRoleSummary|null The summary */ public function getSummary() { if (array_key_exists("summary", $this->_propDict)) { if (is_a($this->_propDict["summary"], "\Beta\Microsoft\Graph\Model\PrivilegedRoleSummary") || is_null($this->_propDict["summary"])) { return $this->_propDict["summary"]; } else { $this->_propDict["summary"] = new PrivilegedRoleSummary($this->_propDict["summary"]); return $this->_propDict["summary"]; } } return null; } /** * Sets the summary * * @param PrivilegedRoleSummary $val The summary * * @return PrivilegedRole */ public function setSummary($val) { $this->_propDict["summary"] = $val; return $this; } }