Class MonitoringClientBuilder
java.lang.Object
com.azure.analytics.synapse.monitoring.MonitoringClientBuilder
A builder for creating a new instance of the MonitoringClient type.
-
Constructor Summary
ConstructorDescriptionCreate an instance of the MonitoringClientBuilder. -
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.apiVersion
(String apiVersion) Sets Api Version.Builds an instance of MonitoringAsyncClient async client.Builds an instance of MonitoringClient sync client.configuration
(Configuration configuration) Sets The configuration store that is used during construction of the service client.credential
(TokenCredential tokenCredential) Sets The TokenCredential used for authentication.Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.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
-
MonitoringClientBuilder
public MonitoringClientBuilder()Create an instance of the MonitoringClientBuilder.
-
-
Method Details
-
endpoint
Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.- Parameters:
endpoint
- the endpoint value.- Returns:
- the MonitoringClientBuilder.
-
apiVersion
Sets Api Version.- Parameters:
apiVersion
- the apiVersion value.- Returns:
- the MonitoringClientBuilder.
-
pipeline
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the MonitoringClientBuilder.
-
serializerAdapter
Sets The serializer to serialize an object into a string.- Parameters:
serializerAdapter
- the serializerAdapter value.- Returns:
- the MonitoringClientBuilder.
-
httpClient
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the MonitoringClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the MonitoringClientBuilder.
-
credential
Sets The TokenCredential used for authentication.- Parameters:
tokenCredential
- the tokenCredential value.- Returns:
- the MonitoringClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the MonitoringClientBuilder.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the MonitoringClientBuilder.
-
addPolicy
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the MonitoringClientBuilder.
-
buildAsyncClient
Builds an instance of MonitoringAsyncClient async client.- Returns:
- an instance of MonitoringAsyncClient.
-
buildClient
Builds an instance of MonitoringClient sync client.- Returns:
- an instance of MonitoringClient.
-