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 Details

    • AnomalyDetectorClientBuilder

      public AnomalyDetectorClientBuilder()
      Create an instance of the AnomalyDetectorClientBuilder.
  • Method Details

    • 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(HttpPipeline pipeline)
      Sets The HTTP pipeline to send requests through.
      Parameters:
      pipeline - the pipeline value.
      Returns:
      the AnomalyDetectorClientBuilder.
    • serializerAdapter

      public AnomalyDetectorClientBuilder serializerAdapter(SerializerAdapter serializerAdapter)
      Sets The serializer to serialize an object into a string.
      Parameters:
      serializerAdapter - the serializerAdapter value.
      Returns:
      the AnomalyDetectorClientBuilder.
    • httpClient

      public AnomalyDetectorClientBuilder httpClient(HttpClient httpClient)
      Sets The HTTP client used to send the request.
      Parameters:
      httpClient - the httpClient value.
      Returns:
      the AnomalyDetectorClientBuilder.
    • configuration

      public AnomalyDetectorClientBuilder configuration(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(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions value.
      Returns:
      the AnomalyDetectorClientBuilder.
    • 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.
    • addPolicy

      public AnomalyDetectorClientBuilder addPolicy(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.