public final class BatchDocumentTranslationClientBuilder extends Object
Constructor and Description |
---|
BatchDocumentTranslationClientBuilder()
Create an instance of the BatchDocumentTranslationClientBuilder.
|
Modifier and Type | Method and Description |
---|---|
BatchDocumentTranslationClientBuilder |
addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
Adds a custom Http pipeline policy.
|
BatchDocumentTranslationRestClient |
buildRestClient()
Builds an instance of BatchDocumentTranslationRestClient low level client.
|
BatchDocumentTranslationClientBuilder |
configuration(com.azure.core.util.Configuration configuration)
Sets The configuration store that is used during construction of the service client.
|
BatchDocumentTranslationClientBuilder |
credential(com.azure.core.credential.AzureKeyCredential azureKeyCredential)
Sets The Azure Key Credential used for authentication.
|
BatchDocumentTranslationClientBuilder |
endpoint(String endpoint)
Sets Supported Cognitive Services endpoints (protocol and hostname, for example:
https://westus.api.cognitive.microsoft.com).
|
BatchDocumentTranslationClientBuilder |
httpClient(com.azure.core.http.HttpClient httpClient)
Sets The HTTP client used to send the request.
|
BatchDocumentTranslationClientBuilder |
httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
Sets The logging configuration for HTTP requests and responses.
|
BatchDocumentTranslationClientBuilder |
objectSerializer(com.azure.core.util.serializer.ObjectSerializer objectSerializer)
Sets The serializer to serialize an object into a string.
|
BatchDocumentTranslationClientBuilder |
pipeline(com.azure.core.http.HttpPipeline pipeline)
Sets The HTTP pipeline to send requests through.
|
BatchDocumentTranslationClientBuilder |
retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
|
public BatchDocumentTranslationClientBuilder()
public BatchDocumentTranslationClientBuilder endpoint(String endpoint)
endpoint
- the endpoint value.public BatchDocumentTranslationClientBuilder objectSerializer(com.azure.core.util.serializer.ObjectSerializer objectSerializer)
objectSerializer
- the objectSerializer value.public BatchDocumentTranslationClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
pipeline
- the pipeline value.public BatchDocumentTranslationClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
httpClient
- the httpClient value.public BatchDocumentTranslationClientBuilder configuration(com.azure.core.util.Configuration configuration)
configuration
- the configuration value.public BatchDocumentTranslationClientBuilder credential(com.azure.core.credential.AzureKeyCredential azureKeyCredential)
azureKeyCredential
- the azureKeyCredential value.public BatchDocumentTranslationClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
httpLogOptions
- the httpLogOptions value.public BatchDocumentTranslationClientBuilder retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
retryPolicy
- the retryPolicy value.public BatchDocumentTranslationClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
customPolicy
- The custom Http pipeline policy to add.public BatchDocumentTranslationRestClient buildRestClient()
Copyright © 2021 Microsoft Corporation. All rights reserved.