Class DocumentIntelligenceClientBuilder
java.lang.Object
com.azure.ai.documentintelligence.DocumentIntelligenceClientBuilder
- All Implemented Interfaces:
com.azure.core.client.traits.ConfigurationTrait<DocumentIntelligenceClientBuilder>
,com.azure.core.client.traits.EndpointTrait<DocumentIntelligenceClientBuilder>
,com.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
,com.azure.core.client.traits.KeyCredentialTrait<DocumentIntelligenceClientBuilder>
,com.azure.core.client.traits.TokenCredentialTrait<DocumentIntelligenceClientBuilder>
public final class DocumentIntelligenceClientBuilder
extends Object
implements com.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>, com.azure.core.client.traits.ConfigurationTrait<DocumentIntelligenceClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<DocumentIntelligenceClientBuilder>, com.azure.core.client.traits.KeyCredentialTrait<DocumentIntelligenceClientBuilder>, com.azure.core.client.traits.EndpointTrait<DocumentIntelligenceClientBuilder>
A builder for creating a new instance of the DocumentIntelligenceClient type.
-
Constructor Summary
ConstructorDescriptionCreate an instance of the DocumentIntelligenceClientBuilder. -
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) .Builds an instance of DocumentIntelligenceAsyncClient class.Builds an instance of DocumentIntelligenceClient class.clientOptions
(com.azure.core.util.ClientOptions clientOptions) .configuration
(com.azure.core.util.Configuration configuration) .credential
(com.azure.core.credential.KeyCredential keyCredential) .credential
(com.azure.core.credential.TokenCredential tokenCredential) ..httpClient
(com.azure.core.http.HttpClient httpClient) .httpLogOptions
(com.azure.core.http.policy.HttpLogOptions httpLogOptions) .pipeline
(com.azure.core.http.HttpPipeline pipeline) .retryOptions
(com.azure.core.http.policy.RetryOptions retryOptions) .retryPolicy
(com.azure.core.http.policy.RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.serviceVersion
(DocumentIntelligenceServiceVersion serviceVersion) Sets Service version.
-
Constructor Details
-
DocumentIntelligenceClientBuilder
public DocumentIntelligenceClientBuilder()Create an instance of the DocumentIntelligenceClientBuilder.
-
-
Method Details
-
pipeline
.- Specified by:
pipeline
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
httpClient
.- Specified by:
httpClient
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
httpLogOptions
public DocumentIntelligenceClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions) .- Specified by:
httpLogOptions
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
clientOptions
public DocumentIntelligenceClientBuilder clientOptions(com.azure.core.util.ClientOptions clientOptions) .- Specified by:
clientOptions
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
retryOptions
public DocumentIntelligenceClientBuilder retryOptions(com.azure.core.http.policy.RetryOptions retryOptions) .- Specified by:
retryOptions
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
addPolicy
public DocumentIntelligenceClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) .- Specified by:
addPolicy
in interfacecom.azure.core.client.traits.HttpTrait<DocumentIntelligenceClientBuilder>
-
configuration
public DocumentIntelligenceClientBuilder configuration(com.azure.core.util.Configuration configuration) .- Specified by:
configuration
in interfacecom.azure.core.client.traits.ConfigurationTrait<DocumentIntelligenceClientBuilder>
-
credential
public DocumentIntelligenceClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential) .- Specified by:
credential
in interfacecom.azure.core.client.traits.TokenCredentialTrait<DocumentIntelligenceClientBuilder>
-
credential
public DocumentIntelligenceClientBuilder credential(com.azure.core.credential.KeyCredential keyCredential) .- Specified by:
credential
in interfacecom.azure.core.client.traits.KeyCredentialTrait<DocumentIntelligenceClientBuilder>
-
endpoint
.- Specified by:
endpoint
in interfacecom.azure.core.client.traits.EndpointTrait<DocumentIntelligenceClientBuilder>
-
serviceVersion
public DocumentIntelligenceClientBuilder serviceVersion(DocumentIntelligenceServiceVersion serviceVersion) Sets Service version.- Parameters:
serviceVersion
- the serviceVersion value.- Returns:
- the DocumentIntelligenceClientBuilder.
-
retryPolicy
public DocumentIntelligenceClientBuilder 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 DocumentIntelligenceClientBuilder.
-
buildAsyncClient
Builds an instance of DocumentIntelligenceAsyncClient class.- Returns:
- an instance of DocumentIntelligenceAsyncClient.
-
buildClient
Builds an instance of DocumentIntelligenceClient class.- Returns:
- an instance of DocumentIntelligenceClient.
-