public final class LogsQueryClientBuilder extends Object
LogsQueryClient
and LogsQueryAsyncClient
.
Instantiating an asynchronous Logs query Client
LogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder() .credential(tokenCredential) .buildAsyncClient();
Instantiating a synchronous Logs query Client
LogsQueryClient logsQueryClient = new LogsQueryClientBuilder() .credential(tokenCredential) .buildClient();
Constructor and Description |
---|
LogsQueryClientBuilder() |
Modifier and Type | Method and Description |
---|---|
LogsQueryClientBuilder |
addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
Adds a custom Http pipeline policy.
|
LogsQueryAsyncClient |
buildAsyncClient()
Creates an asynchronous client with the configured options in this builder.
|
LogsQueryClient |
buildClient()
Creates a synchronous client with the configured options in this builder.
|
LogsQueryClientBuilder |
clientOptions(com.azure.core.util.ClientOptions clientOptions)
Set the
ClientOptions used for creating the client. |
LogsQueryClientBuilder |
configuration(com.azure.core.util.Configuration configuration)
Sets The configuration store that is used during construction of the service client.
|
LogsQueryClientBuilder |
credential(com.azure.core.credential.TokenCredential tokenCredential)
Sets The TokenCredential used for authentication.
|
LogsQueryClientBuilder |
endpoint(String endpoint)
Sets the log query endpoint.
|
LogsQueryClientBuilder |
httpClient(com.azure.core.http.HttpClient httpClient)
Sets The HTTP client used to send the request.
|
LogsQueryClientBuilder |
httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
Sets The logging configuration for HTTP requests and responses.
|
LogsQueryClientBuilder |
pipeline(com.azure.core.http.HttpPipeline pipeline)
Sets The HTTP pipeline to send requests through.
|
LogsQueryClientBuilder |
retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
|
LogsQueryClientBuilder |
serviceVersion(LogsQueryServiceVersion serviceVersion)
The service version to use when creating the client.
|
public LogsQueryClientBuilder endpoint(String endpoint)
endpoint
- the host value.LogsQueryClientBuilder
.public LogsQueryClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
pipeline
- the pipeline value.LogsQueryClientBuilder
.public LogsQueryClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
httpClient
- the httpClient value.LogsQueryClientBuilder
.public LogsQueryClientBuilder configuration(com.azure.core.util.Configuration configuration)
configuration
- the configuration value.LogsQueryClientBuilder
.public LogsQueryClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions)
httpLogOptions
- the httpLogOptions value.LogsQueryClientBuilder
.public LogsQueryClientBuilder retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy)
retryPolicy
- the retryPolicy value.LogsQueryClientBuilder
.public LogsQueryClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy)
customPolicy
- The custom Http pipeline policy to add.LogsQueryClientBuilder
.public LogsQueryClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential)
tokenCredential
- the tokenCredential value.LogsQueryClientBuilder
.public LogsQueryClientBuilder clientOptions(com.azure.core.util.ClientOptions clientOptions)
ClientOptions
used for creating the client.clientOptions
- The ClientOptions
.LogsQueryClientBuilder
public LogsQueryClientBuilder serviceVersion(LogsQueryServiceVersion serviceVersion)
serviceVersion
- The LogsQueryServiceVersion
.LogsQueryClientBuilder
public LogsQueryClient buildClient()
LogsQueryClient
.public LogsQueryAsyncClient buildAsyncClient()
LogsQueryAsyncClient
.Copyright © 2021 Microsoft Corporation. All rights reserved.