_propDict)) { return $this->_propDict["errorCode"]; } else { return null; } } /** * Sets the errorCode * Error code for the failure, empty if no failure. * * @param string $val The value of the errorCode * * @return MobileAppTroubleshootingAppPolicyCreationHistory */ public function setErrorCode($val) { $this->_propDict["errorCode"] = $val; return $this; } /** * Gets the runState * Status of the item. Possible values are: unknown, success, fail, scriptError, pending, notApplicable. * * @return RunState|null The runState */ public function getRunState() { if (array_key_exists("runState", $this->_propDict)) { if (is_a($this->_propDict["runState"], "\Beta\Microsoft\Graph\Model\RunState") || is_null($this->_propDict["runState"])) { return $this->_propDict["runState"]; } else { $this->_propDict["runState"] = new RunState($this->_propDict["runState"]); return $this->_propDict["runState"]; } } return null; } /** * Sets the runState * Status of the item. Possible values are: unknown, success, fail, scriptError, pending, notApplicable. * * @param RunState $val The value to assign to the runState * * @return MobileAppTroubleshootingAppPolicyCreationHistory The MobileAppTroubleshootingAppPolicyCreationHistory */ public function setRunState($val) { $this->_propDict["runState"] = $val; return $this; } }