_propDict)) { if (is_a($this->_propDict["expiration"], "\DateTime") || is_null($this->_propDict["expiration"])) { return $this->_propDict["expiration"]; } else { $this->_propDict["expiration"] = new \DateTime($this->_propDict["expiration"]); return $this->_propDict["expiration"]; } } return null; } /** * Sets the expiration * Date and time when this job expires. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The value to assign to the expiration * * @return SynchronizationSchedule The SynchronizationSchedule */ public function setExpiration($val) { $this->_propDict["expiration"] = $val; return $this; } /** * Gets the interval * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. * * @return \DateInterval|null The interval */ public function getInterval() { if (array_key_exists("interval", $this->_propDict)) { if (is_a($this->_propDict["interval"], "\DateInterval") || is_null($this->_propDict["interval"])) { return $this->_propDict["interval"]; } else { $this->_propDict["interval"] = new \DateInterval($this->_propDict["interval"]); return $this->_propDict["interval"]; } } return null; } /** * Sets the interval * The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. * * @param \DateInterval $val The value to assign to the interval * * @return SynchronizationSchedule The SynchronizationSchedule */ public function setInterval($val) { $this->_propDict["interval"] = $val; return $this; } /** * Gets the state * The possible values are: Active, Disabled, Paused. * * @return SynchronizationScheduleState|null The state */ public function getState() { if (array_key_exists("state", $this->_propDict)) { if (is_a($this->_propDict["state"], "\Microsoft\Graph\Model\SynchronizationScheduleState") || is_null($this->_propDict["state"])) { return $this->_propDict["state"]; } else { $this->_propDict["state"] = new SynchronizationScheduleState($this->_propDict["state"]); return $this->_propDict["state"]; } } return null; } /** * Sets the state * The possible values are: Active, Disabled, Paused. * * @param SynchronizationScheduleState $val The value to assign to the state * * @return SynchronizationSchedule The SynchronizationSchedule */ public function setState($val) { $this->_propDict["state"] = $val; return $this; } }