_propDict)) { if (is_a($this->_propDict["role"], "\Microsoft\Graph\CallRecords\Model\ServiceRole") || is_null($this->_propDict["role"])) { return $this->_propDict["role"]; } else { $this->_propDict["role"] = new ServiceRole($this->_propDict["role"]); return $this->_propDict["role"]; } } return null; } /** * Sets the role * Identifies the role of the service used by this endpoint. Possible values are: unknown, customBot, skypeForBusinessMicrosoftTeamsGateway, skypeForBusinessAudioVideoMcu, skypeForBusinessApplicationSharingMcu, skypeForBusinessCallQueues, skypeForBusinessAutoAttendant, mediationServer, mediationServerCloudConnectorEdition, exchangeUnifiedMessagingService, mediaController, conferencingAnnouncementService, conferencingAttendant, audioTeleconferencerController, skypeForBusinessUnifiedCommunicationApplicationPlatform, responseGroupServiceAnnouncementService, gateway, skypeTranslator, skypeForBusinessAttendant, responseGroupService, voicemail, unknownFutureValue. * * @param ServiceRole $val The value to assign to the role * * @return ServiceUserAgent The ServiceUserAgent */ public function setRole($val) { $this->_propDict["role"] = $val; return $this; } }