Class CommunicationIdentifierModel


  • public final class CommunicationIdentifierModel
    extends Object
    Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set.
    • Constructor Detail

      • CommunicationIdentifierModel

        public CommunicationIdentifierModel()
    • Method Detail

      • getRawId

        public String getRawId()
        Get the rawId property: Raw Id of the identifier. Optional in requests, required in responses.
        Returns:
        the rawId value.
      • setRawId

        public CommunicationIdentifierModel setRawId​(String rawId)
        Set the rawId property: Raw Id of the identifier. Optional in requests, required in responses.
        Parameters:
        rawId - the rawId value to set.
        Returns:
        the CommunicationIdentifierModel object itself.
      • getCommunicationUser

        public CommunicationUserIdentifierModel getCommunicationUser()
        Get the communicationUser property: The communication user.
        Returns:
        the communicationUser value.
      • setCommunicationUser

        public CommunicationIdentifierModel setCommunicationUser​(CommunicationUserIdentifierModel communicationUser)
        Set the communicationUser property: The communication user.
        Parameters:
        communicationUser - the communicationUser value to set.
        Returns:
        the CommunicationIdentifierModel object itself.
      • getPhoneNumber

        public PhoneNumberIdentifierModel getPhoneNumber()
        Get the phoneNumber property: The phone number.
        Returns:
        the phoneNumber value.
      • setPhoneNumber

        public CommunicationIdentifierModel setPhoneNumber​(PhoneNumberIdentifierModel phoneNumber)
        Set the phoneNumber property: The phone number.
        Parameters:
        phoneNumber - the phoneNumber value to set.
        Returns:
        the CommunicationIdentifierModel object itself.
      • getMicrosoftTeamsUser

        public MicrosoftTeamsUserIdentifierModel getMicrosoftTeamsUser()
        Get the microsoftTeamsUser property: The Microsoft Teams user.
        Returns:
        the microsoftTeamsUser value.
      • setMicrosoftTeamsUser

        public CommunicationIdentifierModel setMicrosoftTeamsUser​(MicrosoftTeamsUserIdentifierModel microsoftTeamsUser)
        Set the microsoftTeamsUser property: The Microsoft Teams user.
        Parameters:
        microsoftTeamsUser - the microsoftTeamsUser value to set.
        Returns:
        the CommunicationIdentifierModel object itself.