_propDict)) { if (is_a($this->_propDict["endDateTime"], "\DateTime") || is_null($this->_propDict["endDateTime"])) { return $this->_propDict["endDateTime"]; } else { $this->_propDict["endDateTime"] = new \DateTime($this->_propDict["endDateTime"]); return $this->_propDict["endDateTime"]; } } return null; } /** * Sets the endDateTime * The end time of the logs collected * * @param \DateTime $val The endDateTime * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setEndDateTime($val) { $this->_propDict["endDateTime"] = $val; return $this; } /** * Gets the expiryDateTime * The time when the log collection is expired * * @return \DateTime|null The expiryDateTime */ public function getExpiryDateTime() { if (array_key_exists("expiryDateTime", $this->_propDict)) { if (is_a($this->_propDict["expiryDateTime"], "\DateTime") || is_null($this->_propDict["expiryDateTime"])) { return $this->_propDict["expiryDateTime"]; } else { $this->_propDict["expiryDateTime"] = new \DateTime($this->_propDict["expiryDateTime"]); return $this->_propDict["expiryDateTime"]; } } return null; } /** * Sets the expiryDateTime * The time when the log collection is expired * * @param \DateTime $val The expiryDateTime * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setExpiryDateTime($val) { $this->_propDict["expiryDateTime"] = $val; return $this; } /** * Gets the requestDateTime * The time when the log collection was requested * * @return \DateTime|null The requestDateTime */ public function getRequestDateTime() { if (array_key_exists("requestDateTime", $this->_propDict)) { if (is_a($this->_propDict["requestDateTime"], "\DateTime") || is_null($this->_propDict["requestDateTime"])) { return $this->_propDict["requestDateTime"]; } else { $this->_propDict["requestDateTime"] = new \DateTime($this->_propDict["requestDateTime"]); return $this->_propDict["requestDateTime"]; } } return null; } /** * Sets the requestDateTime * The time when the log collection was requested * * @param \DateTime $val The requestDateTime * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setRequestDateTime($val) { $this->_propDict["requestDateTime"] = $val; return $this; } /** * Gets the serverId * ID of the server the log collection is requested upon * * @return string|null The serverId */ public function getServerId() { if (array_key_exists("serverId", $this->_propDict)) { return $this->_propDict["serverId"]; } else { return null; } } /** * Sets the serverId * ID of the server the log collection is requested upon * * @param string $val The serverId * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setServerId($val) { $this->_propDict["serverId"] = $val; return $this; } /** * Gets the sizeInBytes * The size of the logs in bytes * * @return int|null The sizeInBytes */ public function getSizeInBytes() { if (array_key_exists("sizeInBytes", $this->_propDict)) { return $this->_propDict["sizeInBytes"]; } else { return null; } } /** * Sets the sizeInBytes * The size of the logs in bytes * * @param int $val The sizeInBytes * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setSizeInBytes($val) { $this->_propDict["sizeInBytes"] = intval($val); return $this; } /** * Gets the startDateTime * The start time of the logs collected * * @return \DateTime|null The startDateTime */ public function getStartDateTime() { if (array_key_exists("startDateTime", $this->_propDict)) { if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) { return $this->_propDict["startDateTime"]; } else { $this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]); return $this->_propDict["startDateTime"]; } } return null; } /** * Sets the startDateTime * The start time of the logs collected * * @param \DateTime $val The startDateTime * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setStartDateTime($val) { $this->_propDict["startDateTime"] = $val; return $this; } /** * Gets the status * The status of log collection. Possible values are: pending, completed, failed. Possible values are: pending, completed, failed, unknownFutureValue. * * @return MicrosoftTunnelLogCollectionStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Beta\Microsoft\Graph\Model\MicrosoftTunnelLogCollectionStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new MicrosoftTunnelLogCollectionStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * The status of log collection. Possible values are: pending, completed, failed. Possible values are: pending, completed, failed, unknownFutureValue. * * @param MicrosoftTunnelLogCollectionStatus $val The status * * @return MicrosoftTunnelServerLogCollectionResponse */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } }