Partilhar via


DocumentIntelligenceClientBuilder Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.DocumentIntelligenceClientBuilder

Implements

public final class DocumentIntelligenceClientBuilder
implements HttpTrait<DocumentIntelligenceClientBuilder>, ConfigurationTrait<DocumentIntelligenceClientBuilder>, TokenCredentialTrait<DocumentIntelligenceClientBuilder>, KeyCredentialTrait<DocumentIntelligenceClientBuilder>, EndpointTrait<DocumentIntelligenceClientBuilder>

A builder for creating a new instance of the DocumentIntelligenceClient type.

Constructor Summary

Constructor Description
DocumentIntelligenceClientBuilder()

Create an instance of the DocumentIntelligenceClientBuilder.

Method Summary

Modifier and Type Method and Description
DocumentIntelligenceClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

DocumentIntelligenceAsyncClient buildAsyncClient()

Builds an instance of DocumentIntelligenceAsyncClient class.

DocumentIntelligenceClient buildClient()

Builds an instance of DocumentIntelligenceClient class.

DocumentIntelligenceClientBuilder clientOptions(ClientOptions clientOptions)

.

DocumentIntelligenceClientBuilder configuration(Configuration configuration)

.

DocumentIntelligenceClientBuilder credential(KeyCredential keyCredential)

.

DocumentIntelligenceClientBuilder credential(TokenCredential tokenCredential)

.

DocumentIntelligenceClientBuilder endpoint(String endpoint)

.

DocumentIntelligenceClientBuilder httpClient(HttpClient httpClient)

.

DocumentIntelligenceClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

DocumentIntelligenceClientBuilder pipeline(HttpPipeline pipeline)

.

DocumentIntelligenceClientBuilder retryOptions(RetryOptions retryOptions)

.

DocumentIntelligenceClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

DocumentIntelligenceClientBuilder serviceVersion(DocumentIntelligenceServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

DocumentIntelligenceClientBuilder

public DocumentIntelligenceClientBuilder()

Create an instance of the DocumentIntelligenceClientBuilder.

Method Details

addPolicy

public DocumentIntelligenceClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public DocumentIntelligenceAsyncClient buildAsyncClient()

Builds an instance of DocumentIntelligenceAsyncClient class.

Returns:

an instance of DocumentIntelligenceAsyncClient.

buildClient

public DocumentIntelligenceClient buildClient()

Builds an instance of DocumentIntelligenceClient class.

Returns:

an instance of DocumentIntelligenceClient.

clientOptions

public DocumentIntelligenceClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public DocumentIntelligenceClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public DocumentIntelligenceClientBuilder credential(KeyCredential keyCredential)

.

Parameters:

keyCredential

credential

public DocumentIntelligenceClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public DocumentIntelligenceClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public DocumentIntelligenceClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public DocumentIntelligenceClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public DocumentIntelligenceClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public DocumentIntelligenceClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public DocumentIntelligenceClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the DocumentIntelligenceClientBuilder.

serviceVersion

public DocumentIntelligenceClientBuilder serviceVersion(DocumentIntelligenceServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the DocumentIntelligenceClientBuilder.

Applies to