MetricsBatchQueryClientBuilder Class
- java.
lang. Object - com.
azure. monitor. query. MetricsBatchQueryClientBuilder
- com.
Implements
public final class MetricsBatchQueryClientBuilder
implements EndpointTrait<MetricsBatchQueryClientBuilder>, HttpTrait<MetricsBatchQueryClientBuilder>, ConfigurationTrait<MetricsBatchQueryClientBuilder>, TokenCredentialTrait<MetricsBatchQueryClientBuilder>
Fluent builder for creating instances of MetricsBatchQueryClient and MetricsBatchQueryAsyncClient.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MetricsBatchQueryClientBuilder() | ||
Method Summary
Methods inherited from java.lang.Object
Constructor Details
MetricsBatchQueryClientBuilder
public MetricsBatchQueryClientBuilder()
Method Details
addPolicy
public MetricsBatchQueryClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
Adds a custom Http pipeline policy.
Parameters:
Returns:
buildAsyncClient
public MetricsBatchQueryAsyncClient buildAsyncClient()
Creates an asynchronous client with the configured options in this builder.
Returns:
buildClient
public MetricsBatchQueryClient buildClient()
Creates a synchronous client with the configured options in this builder.
Returns:
clientOptions
public MetricsBatchQueryClientBuilder clientOptions(ClientOptions clientOptions)
Set the ClientOptions used for creating the client.
Parameters:
Returns:
configuration
public MetricsBatchQueryClientBuilder configuration(Configuration configuration)
Sets The configuration store that is used during construction of the service client.
Parameters:
Returns:
credential
public MetricsBatchQueryClientBuilder credential(TokenCredential tokenCredential)
Sets The TokenCredential used for authentication.
Parameters:
Returns:
endpoint
public MetricsBatchQueryClientBuilder endpoint(String endpoint)
Sets the metrics batch query endpoint.
Parameters:
Returns:
httpClient
public MetricsBatchQueryClientBuilder httpClient(HttpClient httpClient)
Sets The HTTP client used to send the request.
Parameters:
Returns:
httpLogOptions
public MetricsBatchQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
Sets The logging configuration for HTTP requests and responses.
Parameters:
Returns:
pipeline
public MetricsBatchQueryClientBuilder pipeline(HttpPipeline pipeline)
Sets The HTTP pipeline to send requests through.
Parameters:
Returns:
retryOptions
public MetricsBatchQueryClientBuilder retryOptions(RetryOptions retryOptions)
Sets the RetryOptions used for creating the client.
Parameters:
Returns:
retryPolicy
public MetricsBatchQueryClientBuilder retryPolicy(RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
Parameters:
Returns:
serviceVersion
public MetricsBatchQueryClientBuilder serviceVersion(MetricsBatchQueryServiceVersion serviceVersion)
The service version to use when creating the client.
Parameters:
Returns: