Class 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 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 class CommunicationIdentifier
        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 .