_propDict)) { if (is_a($this->_propDict["activity"], "\Microsoft\Graph\Model\RiskServicePrincipalActivity") || is_null($this->_propDict["activity"])) { return $this->_propDict["activity"]; } else { $this->_propDict["activity"] = new RiskServicePrincipalActivity($this->_propDict["activity"]); return $this->_propDict["activity"]; } } return null; } /** * Sets the activity * The activity related to service principal risk level change. * * @param RiskServicePrincipalActivity $val The activity * * @return RiskyServicePrincipalHistoryItem */ public function setActivity($val) { $this->_propDict["activity"] = $val; return $this; } /** * Gets the initiatedBy * The identifier of the actor of the operation. * * @return string|null The initiatedBy */ public function getInitiatedBy() { if (array_key_exists("initiatedBy", $this->_propDict)) { return $this->_propDict["initiatedBy"]; } else { return null; } } /** * Sets the initiatedBy * The identifier of the actor of the operation. * * @param string $val The initiatedBy * * @return RiskyServicePrincipalHistoryItem */ public function setInitiatedBy($val) { $this->_propDict["initiatedBy"] = $val; return $this; } }