Class BatchDocumentTranslationClientBuilder

java.lang.Object
com.azure.ai.documenttranslator.BatchDocumentTranslationClientBuilder

public final class BatchDocumentTranslationClientBuilder extends Object
A builder for creating a new instance of the BatchDocumentTranslationClient type.
  • Constructor Details

    • BatchDocumentTranslationClientBuilder

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

    • endpoint

      public BatchDocumentTranslationClientBuilder endpoint(String endpoint)
      Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).
      Parameters:
      endpoint - the endpoint value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • objectSerializer

      public BatchDocumentTranslationClientBuilder objectSerializer(ObjectSerializer objectSerializer)
      Sets The serializer to serialize an object into a string.
      Parameters:
      objectSerializer - the objectSerializer value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • pipeline

      Sets The HTTP pipeline to send requests through.
      Parameters:
      pipeline - the pipeline value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • httpClient

      public BatchDocumentTranslationClientBuilder httpClient(HttpClient httpClient)
      Sets The HTTP client used to send the request.
      Parameters:
      httpClient - the httpClient value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • configuration

      public BatchDocumentTranslationClientBuilder configuration(Configuration configuration)
      Sets The configuration store that is used during construction of the service client.
      Parameters:
      configuration - the configuration value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • credential

      public BatchDocumentTranslationClientBuilder credential(AzureKeyCredential azureKeyCredential)
      Sets The Azure Key Credential used for authentication.
      Parameters:
      azureKeyCredential - the azureKeyCredential value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • httpLogOptions

      public BatchDocumentTranslationClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • retryPolicy

      public BatchDocumentTranslationClientBuilder retryPolicy(RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • addPolicy

      Adds a custom Http pipeline policy.
      Parameters:
      customPolicy - The custom Http pipeline policy to add.
      Returns:
      the BatchDocumentTranslationClientBuilder.
    • buildRestClient

      public BatchDocumentTranslationRestClient buildRestClient()
      Builds an instance of BatchDocumentTranslationRestClient low level client.
      Returns:
      an instance of BatchDocumentTranslationRestClient.