_propDict)) { if (is_a($this->_propDict["deviceRestartBehavior"], "\Beta\Microsoft\Graph\Model\Win32LobAppRestartBehavior") || is_null($this->_propDict["deviceRestartBehavior"])) { return $this->_propDict["deviceRestartBehavior"]; } else { $this->_propDict["deviceRestartBehavior"] = new Win32LobAppRestartBehavior($this->_propDict["deviceRestartBehavior"]); return $this->_propDict["deviceRestartBehavior"]; } } return null; } /** * Sets the deviceRestartBehavior * Device restart behavior. Possible values are: basedOnReturnCode, allow, suppress, force. * * @param Win32LobAppRestartBehavior $val The value to assign to the deviceRestartBehavior * * @return Win32LobAppInstallExperience The Win32LobAppInstallExperience */ public function setDeviceRestartBehavior($val) { $this->_propDict["deviceRestartBehavior"] = $val; return $this; } /** * Gets the maxRunTimeInMinutes * The number of minutes the system will wait for install program to finish. Default value is 60 minutes. * * @return int|null The maxRunTimeInMinutes */ public function getMaxRunTimeInMinutes() { if (array_key_exists("maxRunTimeInMinutes", $this->_propDict)) { return $this->_propDict["maxRunTimeInMinutes"]; } else { return null; } } /** * Sets the maxRunTimeInMinutes * The number of minutes the system will wait for install program to finish. Default value is 60 minutes. * * @param int $val The value of the maxRunTimeInMinutes * * @return Win32LobAppInstallExperience */ public function setMaxRunTimeInMinutes($val) { $this->_propDict["maxRunTimeInMinutes"] = $val; return $this; } /** * Gets the runAsAccount * Indicates the type of execution context the app runs in. Possible values are: system, user. * * @return RunAsAccountType|null The runAsAccount */ public function getRunAsAccount() { if (array_key_exists("runAsAccount", $this->_propDict)) { if (is_a($this->_propDict["runAsAccount"], "\Beta\Microsoft\Graph\Model\RunAsAccountType") || is_null($this->_propDict["runAsAccount"])) { return $this->_propDict["runAsAccount"]; } else { $this->_propDict["runAsAccount"] = new RunAsAccountType($this->_propDict["runAsAccount"]); return $this->_propDict["runAsAccount"]; } } return null; } /** * Sets the runAsAccount * Indicates the type of execution context the app runs in. Possible values are: system, user. * * @param RunAsAccountType $val The value to assign to the runAsAccount * * @return Win32LobAppInstallExperience The Win32LobAppInstallExperience */ public function setRunAsAccount($val) { $this->_propDict["runAsAccount"] = $val; return $this; } }