Class CommunicationIdentifierModel
java.lang.Object
com.azure.messaging.eventgrid.systemevents.CommunicationIdentifierModel
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CommunicationIdentifierModel>
public final class CommunicationIdentifierModel
extends Object
implements com.azure.json.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 TypeMethodDescriptionstatic CommunicationIdentifierModelfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommunicationIdentifierModel from the JsonReader.Get the communicationUser property: The communication user.getKind()Get the kind property: The identifier kind.Get the microsoftTeamsApp property: The Microsoft Teams application.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getKind
Get the kind property: The identifier kind. Only required in responses.- Returns:
- the kind value.
-
getRawId
Get the rawId property: Raw Id of the identifier. Optional in requests, required in responses.- Returns:
- the rawId value.
-
getCommunicationUser
Get the communicationUser property: The communication user.- Returns:
- the communicationUser value.
-
getPhoneNumber
Get the phoneNumber property: The phone number.- Returns:
- the phoneNumber value.
-
getMicrosoftTeamsUser
Get the microsoftTeamsUser property: The Microsoft Teams user.- Returns:
- the microsoftTeamsUser value.
-
getMicrosoftTeamsApp
Get the microsoftTeamsApp property: The Microsoft Teams application.- Returns:
- the microsoftTeamsApp value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CommunicationIdentifierModel>- Throws:
IOException
-
fromJson
public static CommunicationIdentifierModel fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CommunicationIdentifierModel from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CommunicationIdentifierModel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CommunicationIdentifierModel.
-