Class CommunicationIdentifierModel
java.lang.Object
com.azure.messaging.eventgrid.systemevents.CommunicationIdentifierModel
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 Summary
ConstructorsConstructorDescriptionCreates an instance of CommunicationIdentifierModel class. -
Method Summary
Modifier and TypeMethodDescriptionGet the communicationUser property: The communication user.Get the microsoftTeamsUser property: The Microsoft Teams user.Get the phoneNumber property: The phone number.getRawId()Get the rawId property: Raw Id of the identifier.setCommunicationUser(CommunicationUserIdentifierModel communicationUser) Set the communicationUser property: The communication user.setMicrosoftTeamsUser(MicrosoftTeamsUserIdentifierModel microsoftTeamsUser) Set the microsoftTeamsUser property: The Microsoft Teams user.setPhoneNumber(PhoneNumberIdentifierModel phoneNumber) Set the phoneNumber property: The phone number.Set the rawId property: Raw Id of the identifier.
-
Constructor Details
-
CommunicationIdentifierModel
public CommunicationIdentifierModel()Creates an instance of CommunicationIdentifierModel class.
-
-
Method Details
-
getRawId
Get the rawId property: Raw Id of the identifier. Optional in requests, required in responses.- Returns:
- the rawId value.
-
setRawId
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
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
Get the phoneNumber property: The phone number.- Returns:
- the phoneNumber value.
-
setPhoneNumber
Set the phoneNumber property: The phone number.- Parameters:
phoneNumber- the phoneNumber value to set.- Returns:
- the CommunicationIdentifierModel object itself.
-
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.
-