_propDict)) { if (is_a($this->_propDict["all"], "\Beta\Microsoft\Graph\Model\GcpIdentity") || is_null($this->_propDict["all"])) { return $this->_propDict["all"]; } else { $this->_propDict["all"] = new GcpIdentity($this->_propDict["all"]); return $this->_propDict["all"]; } } return null; } /** * Sets the all * * @param GcpIdentity $val The value to assign to the all * * @return GcpAssociatedIdentities The GcpAssociatedIdentities */ public function setAll($val) { $this->_propDict["all"] = $val; return $this; } /** * Gets the serviceAccounts * * @return GcpServiceAccount|null The serviceAccounts */ public function getServiceAccounts() { if (array_key_exists("serviceAccounts", $this->_propDict)) { if (is_a($this->_propDict["serviceAccounts"], "\Beta\Microsoft\Graph\Model\GcpServiceAccount") || is_null($this->_propDict["serviceAccounts"])) { return $this->_propDict["serviceAccounts"]; } else { $this->_propDict["serviceAccounts"] = new GcpServiceAccount($this->_propDict["serviceAccounts"]); return $this->_propDict["serviceAccounts"]; } } return null; } /** * Sets the serviceAccounts * * @param GcpServiceAccount $val The value to assign to the serviceAccounts * * @return GcpAssociatedIdentities The GcpAssociatedIdentities */ public function setServiceAccounts($val) { $this->_propDict["serviceAccounts"] = $val; return $this; } /** * Gets the users * * @return GcpUser|null The users */ public function getUsers() { if (array_key_exists("users", $this->_propDict)) { if (is_a($this->_propDict["users"], "\Beta\Microsoft\Graph\Model\GcpUser") || is_null($this->_propDict["users"])) { return $this->_propDict["users"]; } else { $this->_propDict["users"] = new GcpUser($this->_propDict["users"]); return $this->_propDict["users"]; } } return null; } /** * Sets the users * * @param GcpUser $val The value to assign to the users * * @return GcpAssociatedIdentities The GcpAssociatedIdentities */ public function setUsers($val) { $this->_propDict["users"] = $val; return $this; } }