_propDict)) { if (is_a($this->_propDict["detail"], "\Beta\Microsoft\Graph\Model\RiskDetail") || is_null($this->_propDict["detail"])) { return $this->_propDict["detail"]; } else { $this->_propDict["detail"] = new RiskDetail($this->_propDict["detail"]); return $this->_propDict["detail"]; } } return null; } /** * Sets the detail * The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue. * * @param RiskDetail $val The value to assign to the detail * * @return RiskUserActivity The RiskUserActivity */ public function setDetail($val) { $this->_propDict["detail"] = $val; return $this; } /** * Gets the eventTypes * * @return RiskEventType|null The eventTypes */ public function getEventTypes() { if (array_key_exists("eventTypes", $this->_propDict)) { if (is_a($this->_propDict["eventTypes"], "\Beta\Microsoft\Graph\Model\RiskEventType") || is_null($this->_propDict["eventTypes"])) { return $this->_propDict["eventTypes"]; } else { $this->_propDict["eventTypes"] = new RiskEventType($this->_propDict["eventTypes"]); return $this->_propDict["eventTypes"]; } } return null; } /** * Sets the eventTypes * * @param RiskEventType $val The value to assign to the eventTypes * * @return RiskUserActivity The RiskUserActivity */ public function setEventTypes($val) { $this->_propDict["eventTypes"] = $val; return $this; } /** * Gets the riskEventTypes * * @return string|null The riskEventTypes */ public function getRiskEventTypes() { if (array_key_exists("riskEventTypes", $this->_propDict)) { return $this->_propDict["riskEventTypes"]; } else { return null; } } /** * Sets the riskEventTypes * * @param string $val The value of the riskEventTypes * * @return RiskUserActivity */ public function setRiskEventTypes($val) { $this->_propDict["riskEventTypes"] = $val; return $this; } }