Class BatchServiceClientImpl

  • All Implemented Interfaces:
    BatchServiceClient

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

      • BatchServiceClientImpl

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

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

        public String batchUrl()
        Gets The base URL for all Azure Batch service requests.
        Specified by:
        batchUrl in interface BatchServiceClient
        Returns:
        the batchUrl value.
      • acceptLanguage

        public String acceptLanguage()
        Gets The preferred language for the response.
        Specified by:
        acceptLanguage in interface BatchServiceClient
        Returns:
        the acceptLanguage value.
      • longRunningOperationRetryTimeout

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

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

        public boolean generateClientRequestId()
        Gets Whether a unique x-ms-client-request-id should be generated. 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 BatchServiceClient
        Returns:
        the generateClientRequestId value.
      • withGenerateClientRequestId

        public BatchServiceClientImpl withGenerateClientRequestId​(boolean generateClientRequestId)
        Sets Whether a unique x-ms-client-request-id should be generated. 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 BatchServiceClient
        Parameters:
        generateClientRequestId - the generateClientRequestId value.
        Returns:
        the service client itself
      • pools

        public Pools pools()
        Gets the Pools object to access its operations.
        Specified by:
        pools in interface BatchServiceClient
        Returns:
        the Pools object.
      • accounts

        public Accounts accounts()
        Gets the Accounts object to access its operations.
        Specified by:
        accounts in interface BatchServiceClient
        Returns:
        the Accounts object.
      • jobs

        public Jobs jobs()
        Gets the Jobs object to access its operations.
        Specified by:
        jobs in interface BatchServiceClient
        Returns:
        the Jobs object.
      • files

        public Files files()
        Gets the Files object to access its operations.
        Specified by:
        files in interface BatchServiceClient
        Returns:
        the Files object.
      • tasks

        public Tasks tasks()
        Gets the Tasks object to access its operations.
        Specified by:
        tasks in interface BatchServiceClient
        Returns:
        the Tasks object.
      • initialize

        protected void initialize()
      • userAgent

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