Class QnAMakerManager


  • public class QnAMakerManager
    extends Object
    Entry point to Azure Cognitive Services QnA Maker manager.
    • Constructor Detail

      • QnAMakerManager

        public QnAMakerManager()
    • Method Detail

      • authenticate

        public static QnAMakerClient authenticate​(String subscriptionKey)
        Initializes an instance of QnA Maker API client.
        Parameters:
        subscriptionKey - the QnA Maker API key
        Returns:
        the QnA Maker API client
      • authenticate

        public static QnAMakerClient authenticate​(String baseUrl,
                                                  String subscriptionKey)
        Initializes an instance of QnA Maker API client.
        Parameters:
        baseUrl - the base URL of the service
        subscriptionKey - the QnA Maker API key
        Returns:
        the QnA Maker API client
      • authenticate

        public static QnAMakerClient authenticate​(com.microsoft.rest.credentials.ServiceClientCredentials credentials,
                                                  String endpoint)
        Initializes an instance of QnA Maker API client.
        Parameters:
        credentials - the management credentials for Azure
        endpoint - Supported Cognitive Services endpoints.
        Returns:
        the QnA Maker API client
      • authenticate

        public static QnAMakerClient authenticate​(String baseUrl,
                                                  com.microsoft.rest.credentials.ServiceClientCredentials credentials)
        Initializes an instance of QnA Maker API client.
        Parameters:
        baseUrl - the base URL of the service
        credentials - the management credentials for Azure
        Returns:
        the QnA Maker API client
      • authenticate

        public static QnAMakerClient authenticate​(com.microsoft.rest.RestClient restClient)
        Initializes an instance of QnA Maker API client.
        Parameters:
        restClient - the REST client to connect to Azure.
        Returns:
        the QnA Maker API client