CommunicationIdentifierModel Class
- java.
lang. Object - com.
azure. messaging. eventgrid. systemevents. CommunicationIdentifierModel
- com.
Implements
public final class CommunicationIdentifierModel
implements JsonSerializable<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.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Communication |
fromJson(JsonReader jsonReader)
Reads an instance of Communication |
|
Communication |
getCommunicationUser()
Get the communication |
|
Communication |
getKind()
Get the kind property: The identifier kind. |
|
Microsoft |
getMicrosoftTeamsApp()
Get the microsoft |
|
Microsoft |
getMicrosoftTeamsUser()
Get the microsoft |
|
Phone |
getPhoneNumber()
Get the phone |
| String |
getRawId()
Get the raw |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static CommunicationIdentifierModel fromJson(JsonReader jsonReader)
Reads an instance of CommunicationIdentifierModel from the JsonReader.
Parameters:
Returns:
Throws:
getCommunicationUser
public CommunicationUserIdentifierModel getCommunicationUser()
Get the communicationUser property: The communication user.
Returns:
getKind
public CommunicationIdentifierKind getKind()
Get the kind property: The identifier kind. Only required in responses.
Returns:
getMicrosoftTeamsApp
public MicrosoftTeamsAppIdentifier getMicrosoftTeamsApp()
Get the microsoftTeamsApp property: The Microsoft Teams application.
Returns:
getMicrosoftTeamsUser
public MicrosoftTeamsUserIdentifierModel getMicrosoftTeamsUser()
Get the microsoftTeamsUser property: The Microsoft Teams user.
Returns:
getPhoneNumber
public PhoneNumberIdentifierModel getPhoneNumber()
Get the phoneNumber property: The phone number.
Returns:
getRawId
public String getRawId()
Get the rawId property: Raw Id of the identifier. Optional in requests, required in responses.
Returns: