MicrosoftTeamsUserIdentifierModel Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.MicrosoftTeamsUserIdentifierModel

Implements

public final class MicrosoftTeamsUserIdentifierModel
implements JsonSerializable<MicrosoftTeamsUserIdentifierModel>

A Microsoft Teams user.

Constructor Summary

Constructor Description
MicrosoftTeamsUserIdentifierModel()

Creates an instance of MicrosoftTeamsUserIdentifierModel class.

Method Summary

Modifier and Type Method and Description
static MicrosoftTeamsUserIdentifierModel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftTeamsUserIdentifierModel from the JsonReader.

CommunicationCloudEnvironmentModel getCloud()

Get the cloud property: The cloud that the Microsoft Teams user belongs to.

String getUserId()

Get the userId property: The Id of the Microsoft Teams user.

Boolean isAnonymous()

Get the isAnonymous property: True if the Microsoft Teams user is anonymous.

MicrosoftTeamsUserIdentifierModel setCloud(CommunicationCloudEnvironmentModel cloud)

Set the cloud property: The cloud that the Microsoft Teams user belongs to.

MicrosoftTeamsUserIdentifierModel setIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: True if the Microsoft Teams user is anonymous.

MicrosoftTeamsUserIdentifierModel setUserId(String userId)

Set the userId property: The Id of the Microsoft Teams user.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

MicrosoftTeamsUserIdentifierModel

public MicrosoftTeamsUserIdentifierModel()

Creates an instance of MicrosoftTeamsUserIdentifierModel class.

Method Details

fromJson

public static MicrosoftTeamsUserIdentifierModel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftTeamsUserIdentifierModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftTeamsUserIdentifierModel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCloud

public CommunicationCloudEnvironmentModel getCloud()

Get the cloud property: The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.

Returns:

the cloud value.

getUserId

public String getUserId()

Get the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.

Returns:

the userId value.

isAnonymous

public Boolean isAnonymous()

Get the isAnonymous property: True if the Microsoft Teams user is anonymous. By default false if missing.

Returns:

the isAnonymous value.

setCloud

public MicrosoftTeamsUserIdentifierModel setCloud(CommunicationCloudEnvironmentModel cloud)

Set the cloud property: The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.

Parameters:

cloud - the cloud value to set.

Returns:

the MicrosoftTeamsUserIdentifierModel object itself.

setIsAnonymous

public MicrosoftTeamsUserIdentifierModel setIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: True if the Microsoft Teams user is anonymous. By default false if missing.

Parameters:

isAnonymous - the isAnonymous value to set.

Returns:

the MicrosoftTeamsUserIdentifierModel object itself.

setUserId

public MicrosoftTeamsUserIdentifierModel setUserId(String userId)

Set the userId property: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.

Parameters:

userId - the userId value to set.

Returns:

the MicrosoftTeamsUserIdentifierModel object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to