setODataType("#microsoft.graph.microsoftManagedTrainingSetting"); } /** * Gets the completionDateTime * The completion date for the training. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @return \DateTime|null The completionDateTime */ public function getCompletionDateTime() { if (array_key_exists("completionDateTime", $this->_propDict)) { if (is_a($this->_propDict["completionDateTime"], "\DateTime") || is_null($this->_propDict["completionDateTime"])) { return $this->_propDict["completionDateTime"]; } else { $this->_propDict["completionDateTime"] = new \DateTime($this->_propDict["completionDateTime"]); return $this->_propDict["completionDateTime"]; } } return null; } /** * Sets the completionDateTime * The completion date for the training. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The value to assign to the completionDateTime * * @return MicrosoftManagedTrainingSetting The MicrosoftManagedTrainingSetting */ public function setCompletionDateTime($val) { $this->_propDict["completionDateTime"] = $val; return $this; } /** * Gets the trainingCompletionDuration * The training completion duration that needs to be provided before scheduling the training. The possible values are: week, fortnite, month, unknownFutureValue. * * @return TrainingCompletionDuration|null The trainingCompletionDuration */ public function getTrainingCompletionDuration() { if (array_key_exists("trainingCompletionDuration", $this->_propDict)) { if (is_a($this->_propDict["trainingCompletionDuration"], "\Microsoft\Graph\Model\TrainingCompletionDuration") || is_null($this->_propDict["trainingCompletionDuration"])) { return $this->_propDict["trainingCompletionDuration"]; } else { $this->_propDict["trainingCompletionDuration"] = new TrainingCompletionDuration($this->_propDict["trainingCompletionDuration"]); return $this->_propDict["trainingCompletionDuration"]; } } return null; } /** * Sets the trainingCompletionDuration * The training completion duration that needs to be provided before scheduling the training. The possible values are: week, fortnite, month, unknownFutureValue. * * @param TrainingCompletionDuration $val The value to assign to the trainingCompletionDuration * * @return MicrosoftManagedTrainingSetting The MicrosoftManagedTrainingSetting */ public function setTrainingCompletionDuration($val) { $this->_propDict["trainingCompletionDuration"] = $val; return $this; } }