_propDict)) { if (is_a($this->_propDict["certificate"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["certificate"])) { return $this->_propDict["certificate"]; } else { $this->_propDict["certificate"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["certificate"]); return $this->_propDict["certificate"]; } } return null; } /** * Sets the certificate * Data recovery Certificate * * @param \GuzzleHttp\Psr7\Stream $val The value to assign to the certificate * * @return WindowsInformationProtectionDataRecoveryCertificate The WindowsInformationProtectionDataRecoveryCertificate */ public function setCertificate($val) { $this->_propDict["certificate"] = $val; return $this; } /** * Gets the description * Data recovery Certificate description * * @return string|null The description */ public function getDescription() { if (array_key_exists("description", $this->_propDict)) { return $this->_propDict["description"]; } else { return null; } } /** * Sets the description * Data recovery Certificate description * * @param string $val The value of the description * * @return WindowsInformationProtectionDataRecoveryCertificate */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the expirationDateTime * Data recovery Certificate expiration datetime * * @return \DateTime|null The expirationDateTime */ public function getExpirationDateTime() { if (array_key_exists("expirationDateTime", $this->_propDict)) { if (is_a($this->_propDict["expirationDateTime"], "\DateTime") || is_null($this->_propDict["expirationDateTime"])) { return $this->_propDict["expirationDateTime"]; } else { $this->_propDict["expirationDateTime"] = new \DateTime($this->_propDict["expirationDateTime"]); return $this->_propDict["expirationDateTime"]; } } return null; } /** * Sets the expirationDateTime * Data recovery Certificate expiration datetime * * @param \DateTime $val The value to assign to the expirationDateTime * * @return WindowsInformationProtectionDataRecoveryCertificate The WindowsInformationProtectionDataRecoveryCertificate */ public function setExpirationDateTime($val) { $this->_propDict["expirationDateTime"] = $val; return $this; } /** * Gets the subjectName * Data recovery Certificate subject name * * @return string|null The subjectName */ public function getSubjectName() { if (array_key_exists("subjectName", $this->_propDict)) { return $this->_propDict["subjectName"]; } else { return null; } } /** * Sets the subjectName * Data recovery Certificate subject name * * @param string $val The value of the subjectName * * @return WindowsInformationProtectionDataRecoveryCertificate */ public function setSubjectName($val) { $this->_propDict["subjectName"] = $val; return $this; } }