_propDict)) { if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { return $this->_propDict["createdDateTime"]; } else { $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); return $this->_propDict["createdDateTime"]; } } return null; } /** * Sets the createdDateTime * The date and time when the key was originally backed up to Microsoft Entra ID. Not nullable. * * @param \DateTime $val The createdDateTime * * @return BitlockerRecoveryKey */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the deviceId * Identifier of the device the BitLocker key is originally backed up from. Supports $filter (eq). * * @return string|null The deviceId */ public function getDeviceId() { if (array_key_exists("deviceId", $this->_propDict)) { return $this->_propDict["deviceId"]; } else { return null; } } /** * Sets the deviceId * Identifier of the device the BitLocker key is originally backed up from. Supports $filter (eq). * * @param string $val The deviceId * * @return BitlockerRecoveryKey */ public function setDeviceId($val) { $this->_propDict["deviceId"] = $val; return $this; } /** * Gets the key * The BitLocker recovery key. Returned only on $select. Not nullable. * * @return string|null The key */ public function getKey() { if (array_key_exists("key", $this->_propDict)) { return $this->_propDict["key"]; } else { return null; } } /** * Sets the key * The BitLocker recovery key. Returned only on $select. Not nullable. * * @param string $val The key * * @return BitlockerRecoveryKey */ public function setKey($val) { $this->_propDict["key"] = $val; return $this; } /** * Gets the volumeType * Indicates the type of volume the BitLocker key is associated with. The possible values are: 1 (for operatingSystemVolume), 2 (for fixedDataVolume), 3 (for removableDataVolume), and 4 (for unknownFutureValue). * * @return VolumeType|null The volumeType */ public function getVolumeType() { if (array_key_exists("volumeType", $this->_propDict)) { if (is_a($this->_propDict["volumeType"], "\Microsoft\Graph\Model\VolumeType") || is_null($this->_propDict["volumeType"])) { return $this->_propDict["volumeType"]; } else { $this->_propDict["volumeType"] = new VolumeType($this->_propDict["volumeType"]); return $this->_propDict["volumeType"]; } } return null; } /** * Sets the volumeType * Indicates the type of volume the BitLocker key is associated with. The possible values are: 1 (for operatingSystemVolume), 2 (for fixedDataVolume), 3 (for removableDataVolume), and 4 (for unknownFutureValue). * * @param VolumeType $val The volumeType * * @return BitlockerRecoveryKey */ public function setVolumeType($val) { $this->_propDict["volumeType"] = $val; return $this; } }