Class CommunicationRelayClient


  • public final class CommunicationRelayClient
    extends Object
    Synchronous client interface for Communication Service NetworkTraversal operations

    Instantiating a synchronous CommunicationRelayClient

     // You can find your endpoint and access key from your resource in the Azure Portal
     String endpoint = "https://<RESOURCE_NAME>.communication.azure.com";
     AzureKeyCredential keyCredential = new AzureKeyCredential("<access-key>");
    
     CommunicationRelayClient communicationRelayClient = new CommunicationRelayClientBuilder()
         .endpoint(endpoint)
         .credential(keyCredential)
         .buildClient();
     

    View this for additional ways to construct the client.

    See Also:
    CommunicationRelayClientBuilder
    • Method Detail

      • getRelayConfiguration

        public CommunicationRelayConfiguration getRelayConfiguration()
        Gets a Relay Configuration.
        Returns:
        The obtained Communication Relay Configuration
      • getRelayConfiguration

        public CommunicationRelayConfiguration getRelayConfiguration​(GetRelayConfigurationOptions options)
        Gets a Relay Configuration for a CommunicationUserIdentifier.
        Parameters:
        options - of the GetRelayConfigurationOptions request
        Returns:
        The obtained Communication Relay Configuration
      • getRelayConfigurationWithResponse

        public com.azure.core.http.rest.Response<CommunicationRelayConfiguration> getRelayConfigurationWithResponse​(GetRelayConfigurationOptions options,
                                                                                                                    com.azure.core.util.Context context)
        Gets a Relay Configuration with response.
        Parameters:
        options - of the GetRelayConfigurationOptions request
        context - A Context representing the request context.
        Returns:
        The obtained Communication Relay Configuration