Package com.azure.ai.anomalydetector
Class AnomalyDetectorClientBuilder
java.lang.Object
com.azure.ai.anomalydetector.AnomalyDetectorClientBuilder
A builder for creating a new instance of the AnomalyDetectorClient type.
-
Constructor Summary
ConstructorDescriptionCreate an instance of the AnomalyDetectorClientBuilder. -
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.apiVersion
(String apiVersion) Sets Anomaly Detector API version (for example, v1.0).Builds an instance of AnomalyDetectorAsyncClient async client.Builds an instance of AnomalyDetectorClient sync client.configuration
(Configuration configuration) Sets The configuration store that is used during construction of the service client.Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).httpClient
(HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions
(HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.pipeline
(HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryPolicy
(RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.serializerAdapter
(SerializerAdapter serializerAdapter) Sets The serializer to serialize an object into a string.
-
Constructor Details
-
AnomalyDetectorClientBuilder
public AnomalyDetectorClientBuilder()Create an instance of the AnomalyDetectorClientBuilder.
-
-
Method Details
-
endpoint
Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).- Parameters:
endpoint
- the endpoint value.- Returns:
- the AnomalyDetectorClientBuilder.
-
apiVersion
Sets Anomaly Detector API version (for example, v1.0).- Parameters:
apiVersion
- the apiVersion value.- Returns:
- the AnomalyDetectorClientBuilder.
-
pipeline
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the AnomalyDetectorClientBuilder.
-
serializerAdapter
Sets The serializer to serialize an object into a string.- Parameters:
serializerAdapter
- the serializerAdapter value.- Returns:
- the AnomalyDetectorClientBuilder.
-
httpClient
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the AnomalyDetectorClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the AnomalyDetectorClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the AnomalyDetectorClientBuilder.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the AnomalyDetectorClientBuilder.
-
addPolicy
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the AnomalyDetectorClientBuilder.
-
buildAsyncClient
Builds an instance of AnomalyDetectorAsyncClient async client.- Returns:
- an instance of AnomalyDetectorAsyncClient.
-
buildClient
Builds an instance of AnomalyDetectorClient sync client.- Returns:
- an instance of AnomalyDetectorClient.
-