Class BatchClientBuilder

java.lang.Object
com.azure.compute.batch.BatchClientBuilder
All Implemented Interfaces:
com.azure.core.client.traits.ConfigurationTrait<BatchClientBuilder>, com.azure.core.client.traits.EndpointTrait<BatchClientBuilder>, com.azure.core.client.traits.HttpTrait<BatchClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<BatchClientBuilder>

public final class BatchClientBuilder extends Object implements com.azure.core.client.traits.HttpTrait<BatchClientBuilder>, com.azure.core.client.traits.ConfigurationTrait<BatchClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<BatchClientBuilder>, com.azure.core.client.traits.EndpointTrait<BatchClientBuilder>
A builder for creating a new instance of the BatchClient type.
  • Constructor Details

    • BatchClientBuilder

      public BatchClientBuilder()
      Create an instance of the BatchClientBuilder.
  • Method Details

    • pipeline

      public BatchClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
      .
      Specified by:
      pipeline in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • httpClient

      public BatchClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
      .
      Specified by:
      httpClient in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • httpLogOptions

      public BatchClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
      .
      Specified by:
      httpLogOptions in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • clientOptions

      public BatchClientBuilder clientOptions(com.azure.core.util.ClientOptions clientOptions)
      .
      Specified by:
      clientOptions in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • retryOptions

      public BatchClientBuilder retryOptions(com.azure.core.http.policy.RetryOptions retryOptions)
      .
      Specified by:
      retryOptions in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • addPolicy

      public BatchClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
      .
      Specified by:
      addPolicy in interface com.azure.core.client.traits.HttpTrait<BatchClientBuilder>
    • configuration

      public BatchClientBuilder configuration(com.azure.core.util.Configuration configuration)
      .
      Specified by:
      configuration in interface com.azure.core.client.traits.ConfigurationTrait<BatchClientBuilder>
    • credential

      public BatchClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential)
      .
      Specified by:
      credential in interface com.azure.core.client.traits.TokenCredentialTrait<BatchClientBuilder>
    • credential

      public BatchClientBuilder credential(com.azure.core.credential.AzureNamedKeyCredential azureNamedKeyCredential)
      The AzureNamedKeyCredential used for authentication.
      Parameters:
      azureNamedKeyCredential - the AzureNamedKeyCredential.
      Returns:
      the credential.
    • endpoint

      public BatchClientBuilder endpoint(String endpoint)
      .
      Specified by:
      endpoint in interface com.azure.core.client.traits.EndpointTrait<BatchClientBuilder>
    • serviceVersion

      public BatchClientBuilder serviceVersion(BatchServiceVersion serviceVersion)
      Sets Service version.
      Parameters:
      serviceVersion - the serviceVersion value.
      Returns:
      the BatchClientBuilder.
    • retryPolicy

      public BatchClientBuilder retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the BatchClientBuilder.
    • buildAsyncClient

      public BatchAsyncClient buildAsyncClient()
      Builds an instance of BatchAsyncClient class.
      Returns:
      an instance of BatchAsyncClient.
    • buildClient

      public BatchClient buildClient()
      Builds an instance of BatchClient class.
      Returns:
      an instance of BatchClient.