Share via


TeamsExtensionUserIdentifier Class

public final class TeamsExtensionUserIdentifier
extends CommunicationIdentifier

Communication identifier for a Microsoft Teams Phone user who is using a Communication Services resource to extend their Teams Phone set up.

Constructor Summary

Constructor Description
TeamsExtensionUserIdentifier(String userId, String tenantId, String resourceId)

Creates a TeamsExtensionUserIdentifier object with PUBLIC cloud environment.

Method Summary

Modifier and Type Method and Description
boolean equals(Object that)
CommunicationCloudEnvironment getCloudEnvironment()

Get cloud environment of the Teams Extension User identifier

String getResourceId()

Get Communication Services resource id.

String getTenantId()

Get Microsoft Teams Extension user Tenant ID

String getUserId()

Get Microsoft Teams Extension user

int hashCode()
TeamsExtensionUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)

Set cloud environment of the Teams Extension User identifier

TeamsExtensionUserIdentifier setRawId(String rawId)

Set full ID of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.

Methods inherited from CommunicationIdentifier

Methods inherited from java.lang.Object

Constructor Details

TeamsExtensionUserIdentifier

public TeamsExtensionUserIdentifier(String userId, String tenantId, String resourceId)

Creates a TeamsExtensionUserIdentifier object with PUBLIC cloud environment.

Parameters:

userId - ID of the Microsoft Teams Extension user i.e. the Entra ID object id of the user.
tenantId - Tenant ID of the Microsoft Teams Extension user.
resourceId - The Communication Services resource id.

Method Details

equals

public boolean equals(Object that)

Overrides:

TeamsExtensionUserIdentifier.equals(Object that)

Parameters:

that

getCloudEnvironment

public CommunicationCloudEnvironment getCloudEnvironment()

Get cloud environment of the Teams Extension User identifier

Returns:

cloud environment in which this identifier is created

getResourceId

public String getResourceId()

Get Communication Services resource id.

Returns:

the Communication Services resource id.

getTenantId

public String getTenantId()

Get Microsoft Teams Extension user Tenant ID

Returns:

Tenant ID of the Microsoft Teams Extension user.

getUserId

public String getUserId()

Get Microsoft Teams Extension user

Returns:

ID of the Microsoft Teams Extension user i.e. the Entra ID object id of the user.

hashCode

public int hashCode()

Overrides:

TeamsExtensionUserIdentifier.hashCode()

setCloudEnvironment

public TeamsExtensionUserIdentifier setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)

Set cloud environment of the Teams Extension User identifier

Parameters:

cloudEnvironment - the cloud environment in which this identifier is created

Returns:

this object

setRawId

public TeamsExtensionUserIdentifier setRawId(String rawId)

Set full ID of the identifier RawId is the encoded format for identifiers to store in databases or as stable keys in general.

Overrides:

TeamsExtensionUserIdentifier.setRawId(String rawId)

Parameters:

rawId - full ID of the identifier.

Returns:

TeamsExtensionUserIdentifier object itself.

Applies to