_propDict)) { return $this->_propDict["runRemediationScript"]; } else { return null; } } /** * Sets the runRemediationScript * Determine whether we want to run detection script only or run both detection script and remediation script * * @param bool $val The runRemediationScript * * @return DeviceHealthScriptAssignment */ public function setRunRemediationScript($val) { $this->_propDict["runRemediationScript"] = boolval($val); return $this; } /** * Gets the runSchedule * Script run schedule for the target group * * @return DeviceHealthScriptRunSchedule|null The runSchedule */ public function getRunSchedule() { if (array_key_exists("runSchedule", $this->_propDict)) { if (is_a($this->_propDict["runSchedule"], "\Beta\Microsoft\Graph\Model\DeviceHealthScriptRunSchedule") || is_null($this->_propDict["runSchedule"])) { return $this->_propDict["runSchedule"]; } else { $this->_propDict["runSchedule"] = new DeviceHealthScriptRunSchedule($this->_propDict["runSchedule"]); return $this->_propDict["runSchedule"]; } } return null; } /** * Sets the runSchedule * Script run schedule for the target group * * @param DeviceHealthScriptRunSchedule $val The runSchedule * * @return DeviceHealthScriptAssignment */ public function setRunSchedule($val) { $this->_propDict["runSchedule"] = $val; return $this; } /** * Gets the target * The Azure Active Directory group we are targeting the script to * * @return DeviceAndAppManagementAssignmentTarget|null The target */ public function getTarget() { if (array_key_exists("target", $this->_propDict)) { if (is_a($this->_propDict["target"], "\Beta\Microsoft\Graph\Model\DeviceAndAppManagementAssignmentTarget") || is_null($this->_propDict["target"])) { return $this->_propDict["target"]; } else { $this->_propDict["target"] = new DeviceAndAppManagementAssignmentTarget($this->_propDict["target"]); return $this->_propDict["target"]; } } return null; } /** * Sets the target * The Azure Active Directory group we are targeting the script to * * @param DeviceAndAppManagementAssignmentTarget $val The target * * @return DeviceHealthScriptAssignment */ public function setTarget($val) { $this->_propDict["target"] = $val; return $this; } }