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