Share via


MetricsBatchQueryClientBuilder Class

  • java.lang.Object
    • com.azure.monitor.query.MetricsBatchQueryClientBuilder

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

Modifier and Type Method and Description
MetricsBatchQueryClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

Adds a custom Http pipeline policy.

MetricsBatchQueryAsyncClient buildAsyncClient()

Creates an asynchronous client with the configured options in this builder.

MetricsBatchQueryClient buildClient()

Creates a synchronous client with the configured options in this builder.

MetricsBatchQueryClientBuilder clientOptions(ClientOptions clientOptions)

Set the ClientOptions used for creating the client.

MetricsBatchQueryClientBuilder configuration(Configuration configuration)

Sets The configuration store that is used during construction of the service client.

MetricsBatchQueryClientBuilder credential(TokenCredential tokenCredential)

Sets The TokenCredential used for authentication.

MetricsBatchQueryClientBuilder endpoint(String endpoint)

Sets the metrics batch query endpoint.

MetricsBatchQueryClientBuilder httpClient(HttpClient httpClient)

Sets The HTTP client used to send the request.

MetricsBatchQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

Sets The logging configuration for HTTP requests and responses.

MetricsBatchQueryClientBuilder pipeline(HttpPipeline pipeline)

Sets The HTTP pipeline to send requests through.

MetricsBatchQueryClientBuilder retryOptions(RetryOptions retryOptions)

Sets the RetryOptions used for creating the client.

MetricsBatchQueryClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

MetricsBatchQueryClientBuilder serviceVersion(MetricsBatchQueryServiceVersion serviceVersion)

The service version to use when creating the client.

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:

customPolicy - The custom Http pipeline policy to add.

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:

clientOptions - The ClientOptions.

Returns:

configuration

public MetricsBatchQueryClientBuilder configuration(Configuration configuration)

Sets The configuration store that is used during construction of the service client.

Parameters:

configuration - the configuration value.

Returns:

credential

public MetricsBatchQueryClientBuilder credential(TokenCredential tokenCredential)

Sets The TokenCredential used for authentication.

Parameters:

tokenCredential - the tokenCredential value.

Returns:

endpoint

public MetricsBatchQueryClientBuilder endpoint(String endpoint)

Sets the metrics batch query endpoint.

Parameters:

endpoint - the endpoint.

Returns:

httpClient

public MetricsBatchQueryClientBuilder httpClient(HttpClient httpClient)

Sets The HTTP client used to send the request.

Parameters:

httpClient - the httpClient value.

Returns:

httpLogOptions

public MetricsBatchQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

Sets The logging configuration for HTTP requests and responses.

Parameters:

httpLogOptions - the httpLogOptions value.

Returns:

pipeline

public MetricsBatchQueryClientBuilder pipeline(HttpPipeline pipeline)

Sets The HTTP pipeline to send requests through.

Parameters:

pipeline - the pipeline value.

Returns:

retryOptions

public MetricsBatchQueryClientBuilder retryOptions(RetryOptions retryOptions)

Sets the RetryOptions used for creating the client.

Parameters:

retryOptions - The RetryOptions.

Returns:

retryPolicy

public MetricsBatchQueryClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

serviceVersion

public MetricsBatchQueryClientBuilder serviceVersion(MetricsBatchQueryServiceVersion serviceVersion)

The service version to use when creating the client.

Parameters:

serviceVersion - The MetricsBatchQueryServiceVersion.

Returns:

Applies to