AnomalyDetectorClientBuilder Class

  • java.lang.Object
    • com.azure.ai.anomalydetector.AnomalyDetectorClientBuilder

Implements

public final class AnomalyDetectorClientBuilder
implements HttpTrait<AnomalyDetectorClientBuilder>, ConfigurationTrait<AnomalyDetectorClientBuilder>, AzureKeyCredentialTrait<AnomalyDetectorClientBuilder>, EndpointTrait<AnomalyDetectorClientBuilder>

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

Constructor Summary

Constructor Description
AnomalyDetectorClientBuilder()

Create an instance of the AnomalyDetectorClientBuilder.

Method Summary

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

.

AnomalyDetectorAsyncClient buildAsyncClient()

Builds an instance of AnomalyDetectorAsyncClient class.

AnomalyDetectorClient buildClient()

Builds an instance of AnomalyDetectorClient class.

AnomalyDetectorClientBuilder clientOptions(ClientOptions clientOptions)

.

AnomalyDetectorClientBuilder configuration(Configuration configuration)

.

AnomalyDetectorClientBuilder credential(AzureKeyCredential azureKeyCredential)

.

AnomalyDetectorClientBuilder endpoint(String endpoint)

.

AnomalyDetectorClientBuilder httpClient(HttpClient httpClient)

.

AnomalyDetectorClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

AnomalyDetectorClientBuilder pipeline(HttpPipeline pipeline)

.

AnomalyDetectorClientBuilder retryOptions(RetryOptions retryOptions)

.

AnomalyDetectorClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

AnomalyDetectorClientBuilder serviceVersion(AnomalyDetectorServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

AnomalyDetectorClientBuilder

public AnomalyDetectorClientBuilder()

Create an instance of the AnomalyDetectorClientBuilder.

Method Details

addPolicy

public AnomalyDetectorClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public AnomalyDetectorAsyncClient buildAsyncClient()

Builds an instance of AnomalyDetectorAsyncClient class.

Returns:

an instance of AnomalyDetectorAsyncClient.

buildClient

public AnomalyDetectorClient buildClient()

Builds an instance of AnomalyDetectorClient class.

Returns:

an instance of AnomalyDetectorClient.

clientOptions

public AnomalyDetectorClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public AnomalyDetectorClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public AnomalyDetectorClientBuilder credential(AzureKeyCredential azureKeyCredential)

.

Parameters:

azureKeyCredential

endpoint

public AnomalyDetectorClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public AnomalyDetectorClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public AnomalyDetectorClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public AnomalyDetectorClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public AnomalyDetectorClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public AnomalyDetectorClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the AnomalyDetectorClientBuilder.

serviceVersion

public AnomalyDetectorClientBuilder serviceVersion(AnomalyDetectorServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the AnomalyDetectorClientBuilder.

Applies to