_propDict)) { if (is_a($this->_propDict["contentBytes"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["contentBytes"])) { return $this->_propDict["contentBytes"]; } else { $this->_propDict["contentBytes"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["contentBytes"]); return $this->_propDict["contentBytes"]; } } return null; } /** * Sets the contentBytes * The base64-encoded contents of the file. * * @param \GuzzleHttp\Psr7\Stream $val The contentBytes * * @return FileAttachment */ public function setContentBytes($val) { $this->_propDict["contentBytes"] = $val; return $this; } /** * Gets the contentId * The ID of the attachment in the Exchange store. * * @return string|null The contentId */ public function getContentId() { if (array_key_exists("contentId", $this->_propDict)) { return $this->_propDict["contentId"]; } else { return null; } } /** * Sets the contentId * The ID of the attachment in the Exchange store. * * @param string $val The contentId * * @return FileAttachment */ public function setContentId($val) { $this->_propDict["contentId"] = $val; return $this; } /** * Gets the contentLocation * Don't use this property as it isn't supported. * * @return string|null The contentLocation */ public function getContentLocation() { if (array_key_exists("contentLocation", $this->_propDict)) { return $this->_propDict["contentLocation"]; } else { return null; } } /** * Sets the contentLocation * Don't use this property as it isn't supported. * * @param string $val The contentLocation * * @return FileAttachment */ public function setContentLocation($val) { $this->_propDict["contentLocation"] = $val; return $this; } }