Class MonitoringClientBuilder

java.lang.Object
com.azure.analytics.synapse.monitoring.MonitoringClientBuilder

public final class MonitoringClientBuilder extends Object
A builder for creating a new instance of the MonitoringClient type.
  • Constructor Details

    • MonitoringClientBuilder

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

    • endpoint

      public MonitoringClientBuilder endpoint(String endpoint)
      Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
      Parameters:
      endpoint - the endpoint value.
      Returns:
      the MonitoringClientBuilder.
    • apiVersion

      public MonitoringClientBuilder apiVersion(String apiVersion)
      Sets Api Version.
      Parameters:
      apiVersion - the apiVersion value.
      Returns:
      the MonitoringClientBuilder.
    • pipeline

      public MonitoringClientBuilder pipeline(HttpPipeline pipeline)
      Sets The HTTP pipeline to send requests through.
      Parameters:
      pipeline - the pipeline value.
      Returns:
      the MonitoringClientBuilder.
    • serializerAdapter

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

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

      public MonitoringClientBuilder configuration(Configuration configuration)
      Sets The configuration store that is used during construction of the service client.
      Parameters:
      configuration - the configuration value.
      Returns:
      the MonitoringClientBuilder.
    • credential

      public MonitoringClientBuilder credential(TokenCredential tokenCredential)
      Sets The TokenCredential used for authentication.
      Parameters:
      tokenCredential - the tokenCredential value.
      Returns:
      the MonitoringClientBuilder.
    • httpLogOptions

      public MonitoringClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions value.
      Returns:
      the MonitoringClientBuilder.
    • retryPolicy

      public MonitoringClientBuilder retryPolicy(RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the MonitoringClientBuilder.
    • addPolicy

      public MonitoringClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
      Adds a custom Http pipeline policy.
      Parameters:
      customPolicy - The custom Http pipeline policy to add.
      Returns:
      the MonitoringClientBuilder.
    • buildAsyncClient

      public MonitoringAsyncClient buildAsyncClient()
      Builds an instance of MonitoringAsyncClient async client.
      Returns:
      an instance of MonitoringAsyncClient.
    • buildClient

      public MonitoringClient buildClient()
      Builds an instance of MonitoringClient sync client.
      Returns:
      an instance of MonitoringClient.