Class TeamsExtensionUserIdentifier
- java.lang.Object
-
- com.azure.android.communication.common.CommunicationIdentifier
-
- com.azure.android.communication.common.TeamsExtensionUserIdentifier
-
public final class TeamsExtensionUserIdentifier extends CommunicationIdentifier
Communication identifier for Microsoft Teams Phone user who is using a Communication Services resource to extend their Teams Phone set up.
-
-
Constructor Summary
Constructors Constructor Description TeamsExtensionUserIdentifier(java.lang.String userId, java.lang.String tenantId, java.lang.String resourceId)
Creates a TeamsExtensionUserIdentifier object with PUBLIC cloud environment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
CommunicationCloudEnvironment
getCloudEnvironment()
Get cloud environment of the Teams Extension User identifierjava.lang.String
getResourceId()
Get Communication Services resource id.java.lang.String
getTenantId()
Get Microsoft Teams Extension user Tenant IDjava.lang.String
getUserId()
Get Microsoft Teams Extension userint
hashCode()
TeamsExtensionUserIdentifier
setCloudEnvironment(CommunicationCloudEnvironment cloudEnvironment)
Set cloud environment of the Teams Extension User identifierTeamsExtensionUserIdentifier
setRawId(java.lang.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 class com.azure.android.communication.common.CommunicationIdentifier
fromRawId, getRawId
-
-
-
-
Constructor Detail
-
TeamsExtensionUserIdentifier
public TeamsExtensionUserIdentifier(java.lang.String userId, java.lang.String tenantId, java.lang.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.- Throws:
java.lang.IllegalArgumentException
- if any parameter fail the validation.
-
-
Method Detail
-
setRawId
public TeamsExtensionUserIdentifier setRawId(java.lang.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:
setRawId
in classCommunicationIdentifier
- Parameters:
rawId
- full ID of the identifier.- Returns:
- TeamsExtensionUserIdentifier object itself.
-
getUserId
public java.lang.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.
-
getTenantId
public java.lang.String getTenantId()
Get Microsoft Teams Extension user Tenant ID- Returns:
- Tenant ID of the Microsoft Teams Extension user.
-
getResourceId
public java.lang.String getResourceId()
Get Communication Services resource id.- Returns:
- the Communication Services resource id.
-
getCloudEnvironment
public CommunicationCloudEnvironment getCloudEnvironment()
Get cloud environment of the Teams Extension User identifier- Returns:
- cloud environment in which this identifier is created
-
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
- Throws:
java.lang.IllegalArgumentException
- if cloudEnvironment .
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classCommunicationIdentifier
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCommunicationIdentifier
-
-