Package com.azure.ai.anomalydetector
Class AnomalyDetectorClientBuilder
- java.lang.Object
-
- com.azure.ai.anomalydetector.AnomalyDetectorClientBuilder
-
public final class AnomalyDetectorClientBuilder extends Object
A builder for creating a new instance of the AnomalyDetectorClient type.
-
-
Constructor Summary
Constructors Constructor Description AnomalyDetectorClientBuilder()
Create an instance of the AnomalyDetectorClientBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnomalyDetectorClientBuilder
addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
Adds a custom Http pipeline policy.AnomalyDetectorClientBuilder
apiVersion(String apiVersion)
Sets Anomaly Detector API version (for example, v1.0).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.
-
-
-
Method Detail
-
endpoint
public AnomalyDetectorClientBuilder endpoint(String 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
public AnomalyDetectorClientBuilder apiVersion(String apiVersion)
Sets Anomaly Detector API version (for example, v1.0).- Parameters:
apiVersion
- the apiVersion value.- Returns:
- the AnomalyDetectorClientBuilder.
-
pipeline
public AnomalyDetectorClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the AnomalyDetectorClientBuilder.
-
serializerAdapter
public AnomalyDetectorClientBuilder serializerAdapter(com.azure.core.util.serializer.SerializerAdapter serializerAdapter)
Sets The serializer to serialize an object into a string.- Parameters:
serializerAdapter
- the serializerAdapter value.- Returns:
- the AnomalyDetectorClientBuilder.
-
httpClient
public AnomalyDetectorClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the AnomalyDetectorClientBuilder.
-
configuration
public AnomalyDetectorClientBuilder configuration(com.azure.core.util.Configuration configuration)
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the AnomalyDetectorClientBuilder.
-
httpLogOptions
public AnomalyDetectorClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the AnomalyDetectorClientBuilder.
-
retryPolicy
public AnomalyDetectorClientBuilder retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the AnomalyDetectorClientBuilder.
-
addPolicy
public AnomalyDetectorClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the AnomalyDetectorClientBuilder.
-
buildAsyncClient
public AnomalyDetectorAsyncClient buildAsyncClient()
Builds an instance of AnomalyDetectorAsyncClient async client.- Returns:
- an instance of AnomalyDetectorAsyncClient.
-
buildClient
public AnomalyDetectorClient buildClient()
Builds an instance of AnomalyDetectorClient sync client.- Returns:
- an instance of AnomalyDetectorClient.
-
-