Class QnAMakerClientImpl

  • All Implemented Interfaces:
    QnAMakerClient

    public class QnAMakerClientImpl
    extends com.microsoft.azure.AzureServiceClient
    implements QnAMakerClient
    Initializes a new instance of the QnAMakerClientImpl class.
    • Constructor Detail

      • QnAMakerClientImpl

        public QnAMakerClientImpl​(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
        Initializes an instance of QnAMakerClient client.
        Parameters:
        credentials - the management credentials for Azure
      • QnAMakerClientImpl

        public QnAMakerClientImpl​(String baseUrl,
                                  com.microsoft.rest.credentials.ServiceClientCredentials credentials)
        Initializes an instance of QnAMakerClient client.
        Parameters:
        baseUrl - the base URL of the host
        credentials - the management credentials for Azure
      • QnAMakerClientImpl

        public QnAMakerClientImpl​(com.microsoft.rest.RestClient restClient)
        Initializes an instance of QnAMakerClient client.
        Parameters:
        restClient - the REST client to connect to Azure.
    • Method Detail

      • getAzureClient

        public com.microsoft.azure.AzureClient getAzureClient()
        Gets the AzureClient used for long running operations.
        Specified by:
        getAzureClient in interface QnAMakerClient
        Returns:
        the azure client;
      • endpoint

        public String endpoint()
        Gets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).
        Specified by:
        endpoint in interface QnAMakerClient
        Returns:
        the endpoint value.
      • withEndpoint

        public QnAMakerClientImpl withEndpoint​(String endpoint)
        Sets Supported Cognitive Services endpoint (e.g., https://< qnamaker-resource-name >.api.cognitiveservices.azure.com).
        Specified by:
        withEndpoint in interface QnAMakerClient
        Parameters:
        endpoint - the endpoint value.
        Returns:
        the service client itself
      • acceptLanguage

        public String acceptLanguage()
        Gets Gets or sets the preferred language for the response.
        Specified by:
        acceptLanguage in interface QnAMakerClient
        Returns:
        the acceptLanguage value.
      • withAcceptLanguage

        public QnAMakerClientImpl withAcceptLanguage​(String acceptLanguage)
        Sets Gets or sets the preferred language for the response.
        Specified by:
        withAcceptLanguage in interface QnAMakerClient
        Parameters:
        acceptLanguage - the acceptLanguage value.
        Returns:
        the service client itself
      • longRunningOperationRetryTimeout

        public int longRunningOperationRetryTimeout()
        Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
        Specified by:
        longRunningOperationRetryTimeout in interface QnAMakerClient
        Returns:
        the longRunningOperationRetryTimeout value.
      • withLongRunningOperationRetryTimeout

        public QnAMakerClientImpl withLongRunningOperationRetryTimeout​(int longRunningOperationRetryTimeout)
        Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
        Specified by:
        withLongRunningOperationRetryTimeout in interface QnAMakerClient
        Parameters:
        longRunningOperationRetryTimeout - the longRunningOperationRetryTimeout value.
        Returns:
        the service client itself
      • generateClientRequestId

        public boolean generateClientRequestId()
        Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
        Specified by:
        generateClientRequestId in interface QnAMakerClient
        Returns:
        the generateClientRequestId value.
      • withGenerateClientRequestId

        public QnAMakerClientImpl withGenerateClientRequestId​(boolean generateClientRequestId)
        Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
        Specified by:
        withGenerateClientRequestId in interface QnAMakerClient
        Parameters:
        generateClientRequestId - the generateClientRequestId value.
        Returns:
        the service client itself
      • endpointKeys

        public EndpointKeys endpointKeys()
        Gets the EndpointKeys object to access its operations.
        Specified by:
        endpointKeys in interface QnAMakerClient
        Returns:
        the EndpointKeys object.
      • alterations

        public Alterations alterations()
        Gets the Alterations object to access its operations.
        Specified by:
        alterations in interface QnAMakerClient
        Returns:
        the Alterations object.
      • operations

        public Operations operations()
        Gets the Operations object to access its operations.
        Specified by:
        operations in interface QnAMakerClient
        Returns:
        the Operations object.
      • initialize

        protected void initialize()
      • userAgent

        public String userAgent()
        Gets the User-Agent header for the client.
        Specified by:
        userAgent in interface QnAMakerClient
        Overrides:
        userAgent in class com.microsoft.azure.AzureServiceClient
        Returns:
        the user agent string.