_propDict)) { if (is_a($this->_propDict["labelPolicySettings"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\InformationProtectionPolicySetting") || is_null($this->_propDict["labelPolicySettings"])) { return $this->_propDict["labelPolicySettings"]; } else { $this->_propDict["labelPolicySettings"] = new InformationProtectionPolicySetting($this->_propDict["labelPolicySettings"]); return $this->_propDict["labelPolicySettings"]; } } return null; } /** * Sets the labelPolicySettings * Read the Microsoft Purview Information Protection policy settings for the user or organization. * * @param InformationProtectionPolicySetting $val The labelPolicySettings * * @return InformationProtection */ public function setLabelPolicySettings($val) { $this->_propDict["labelPolicySettings"] = $val; return $this; } /** * Gets the sensitivityLabels * Read the Microsoft Purview Information Protection labels for the user or organization. * * @return array|null The sensitivityLabels */ public function getSensitivityLabels() { if (array_key_exists("sensitivityLabels", $this->_propDict)) { return $this->_propDict["sensitivityLabels"]; } else { return null; } } /** * Sets the sensitivityLabels * Read the Microsoft Purview Information Protection labels for the user or organization. * * @param SensitivityLabel[] $val The sensitivityLabels * * @return InformationProtection */ public function setSensitivityLabels($val) { $this->_propDict["sensitivityLabels"] = $val; return $this; } }