Share via


ContentUnderstandingClientBuilder Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.ContentUnderstandingClientBuilder

Implements

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

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

Constructor Summary

Constructor Description
ContentUnderstandingClientBuilder()

Create an instance of the ContentUnderstandingClientBuilder.

Method Summary

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

.

ContentUnderstandingAsyncClient buildAsyncClient()

Builds an instance of ContentUnderstandingAsyncClient class.

ContentUnderstandingClient buildClient()

Builds an instance of ContentUnderstandingClient class.

ContentUnderstandingClientBuilder clientOptions(ClientOptions clientOptions)

.

ContentUnderstandingClientBuilder configuration(Configuration configuration)

.

ContentUnderstandingClientBuilder credential(KeyCredential keyCredential)

.

ContentUnderstandingClientBuilder credential(TokenCredential tokenCredential)

.

ContentUnderstandingClientBuilder endpoint(String endpoint)

.

ContentUnderstandingClientBuilder httpClient(HttpClient httpClient)

.

ContentUnderstandingClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

ContentUnderstandingClientBuilder pipeline(HttpPipeline pipeline)

.

ContentUnderstandingClientBuilder retryOptions(RetryOptions retryOptions)

.

ContentUnderstandingClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

ContentUnderstandingClientBuilder serviceVersion(ContentUnderstandingServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

ContentUnderstandingClientBuilder

public ContentUnderstandingClientBuilder()

Create an instance of the ContentUnderstandingClientBuilder.

Method Details

addPolicy

public ContentUnderstandingClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public ContentUnderstandingAsyncClient buildAsyncClient()

Builds an instance of ContentUnderstandingAsyncClient class.

Returns:

an instance of ContentUnderstandingAsyncClient.

buildClient

public ContentUnderstandingClient buildClient()

Builds an instance of ContentUnderstandingClient class.

Returns:

an instance of ContentUnderstandingClient.

clientOptions

public ContentUnderstandingClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public ContentUnderstandingClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public ContentUnderstandingClientBuilder credential(KeyCredential keyCredential)

.

Parameters:

keyCredential

credential

public ContentUnderstandingClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public ContentUnderstandingClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public ContentUnderstandingClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public ContentUnderstandingClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public ContentUnderstandingClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public ContentUnderstandingClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public ContentUnderstandingClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the ContentUnderstandingClientBuilder.

serviceVersion

public ContentUnderstandingClientBuilder serviceVersion(ContentUnderstandingServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the ContentUnderstandingClientBuilder.

Applies to