_propDict)) { if (is_a($this->_propDict["recurrence"], "\Beta\Microsoft\Graph\Model\Windows10AppsUpdateRecurrence") || is_null($this->_propDict["recurrence"])) { return $this->_propDict["recurrence"]; } else { $this->_propDict["recurrence"] = new Windows10AppsUpdateRecurrence($this->_propDict["recurrence"]); return $this->_propDict["recurrence"]; } } return null; } /** * Sets the recurrence * Recurrence schedule. Possible values are: none, daily, weekly, monthly. * * @param Windows10AppsUpdateRecurrence $val The value to assign to the recurrence * * @return Windows10AppsForceUpdateSchedule The Windows10AppsForceUpdateSchedule */ public function setRecurrence($val) { $this->_propDict["recurrence"] = $val; return $this; } /** * Gets the runImmediatelyIfAfterStartDateTime * If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence. * * @return bool|null The runImmediatelyIfAfterStartDateTime */ public function getRunImmediatelyIfAfterStartDateTime() { if (array_key_exists("runImmediatelyIfAfterStartDateTime", $this->_propDict)) { return $this->_propDict["runImmediatelyIfAfterStartDateTime"]; } else { return null; } } /** * Sets the runImmediatelyIfAfterStartDateTime * If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence. * * @param bool $val The value of the runImmediatelyIfAfterStartDateTime * * @return Windows10AppsForceUpdateSchedule */ public function setRunImmediatelyIfAfterStartDateTime($val) { $this->_propDict["runImmediatelyIfAfterStartDateTime"] = $val; return $this; } /** * Gets the startDateTime * The start time for the force restart. * * @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 for the force restart. * * @param \DateTime $val The value to assign to the startDateTime * * @return Windows10AppsForceUpdateSchedule The Windows10AppsForceUpdateSchedule */ public function setStartDateTime($val) { $this->_propDict["startDateTime"] = $val; return $this; } }