Package com.azure.ai.documenttranslator
Class BatchDocumentTranslationClientBuilder
java.lang.Object
com.azure.ai.documenttranslator.BatchDocumentTranslationClientBuilder
A builder for creating a new instance of the BatchDocumentTranslationClient type.
-
Constructor Summary
ConstructorDescriptionCreate an instance of the BatchDocumentTranslationClientBuilder. -
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.Builds an instance of BatchDocumentTranslationRestClient low level client.configuration
(Configuration configuration) Sets The configuration store that is used during construction of the service client.credential
(AzureKeyCredential azureKeyCredential) Sets The Azure Key Credential used for authentication.Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).httpClient
(HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions
(HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.objectSerializer
(ObjectSerializer objectSerializer) Sets The serializer to serialize an object into a string.pipeline
(HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryPolicy
(RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.
-
Constructor Details
-
BatchDocumentTranslationClientBuilder
public BatchDocumentTranslationClientBuilder()Create an instance of the BatchDocumentTranslationClientBuilder.
-
-
Method Details
-
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
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
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the BatchDocumentTranslationClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the BatchDocumentTranslationClientBuilder.
-
credential
Sets The Azure Key Credential used for authentication.- Parameters:
azureKeyCredential
- the azureKeyCredential value.- Returns:
- the BatchDocumentTranslationClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the BatchDocumentTranslationClientBuilder.
-
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
Builds an instance of BatchDocumentTranslationRestClient low level client.- Returns:
- an instance of BatchDocumentTranslationRestClient.
-