Class ComputerVisionClientImpl

  • All Implemented Interfaces:
    ComputerVisionClient

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

      • ComputerVisionClientImpl

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

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

        public ComputerVisionClientImpl​(com.microsoft.rest.RestClient restClient)
        Initializes an instance of ComputerVisionClient 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 ComputerVisionClient
        Returns:
        the azure client;
      • endpoint

        public String endpoint()
        Gets Supported Cognitive Services endpoints.
        Specified by:
        endpoint in interface ComputerVisionClient
        Returns:
        the endpoint value.
      • acceptLanguage

        public String acceptLanguage()
        Gets Gets or sets the preferred language for the response.
        Specified by:
        acceptLanguage in interface ComputerVisionClient
        Returns:
        the acceptLanguage value.
      • 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 ComputerVisionClient
        Returns:
        the longRunningOperationRetryTimeout value.
      • withLongRunningOperationRetryTimeout

        public ComputerVisionClientImpl 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 ComputerVisionClient
        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 ComputerVisionClient
        Returns:
        the generateClientRequestId value.
      • withGenerateClientRequestId

        public ComputerVisionClientImpl 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 ComputerVisionClient
        Parameters:
        generateClientRequestId - the generateClientRequestId value.
        Returns:
        the service client itself
      • initialize

        protected void initialize()
      • userAgent

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