Package com.azure.monitor.ingestion
Class LogsIngestionClientBuilder
java.lang.Object
com.azure.monitor.ingestion.LogsIngestionClientBuilder
- All Implemented Interfaces:
com.azure.core.client.traits.ConfigurationTrait<LogsIngestionClientBuilder>
,com.azure.core.client.traits.EndpointTrait<LogsIngestionClientBuilder>
,com.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
,com.azure.core.client.traits.TokenCredentialTrait<LogsIngestionClientBuilder>
public final class LogsIngestionClientBuilder
extends Object
implements com.azure.core.client.traits.ConfigurationTrait<LogsIngestionClientBuilder>, com.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>, com.azure.core.client.traits.EndpointTrait<LogsIngestionClientBuilder>, com.azure.core.client.traits.TokenCredentialTrait<LogsIngestionClientBuilder>
Fluent builder for creating instances of
LogsIngestionClient
and LogsIngestionAsyncClient
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.Creates an asynchronous client with the configured options in this builder.Creates a synchronous client with the configured options in this builder.clientOptions
(com.azure.core.util.ClientOptions clientOptions) Set theClientOptions
used for creating the client.configuration
(com.azure.core.util.Configuration configuration) Sets The configuration store that is used during construction of the service client.credential
(com.azure.core.credential.TokenCredential tokenCredential) Sets The TokenCredential used for authentication.Sets the log query endpoint.httpClient
(com.azure.core.http.HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions
(com.azure.core.http.policy.HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.pipeline
(com.azure.core.http.HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryOptions
(com.azure.core.http.policy.RetryOptions retryOptions) Sets the retry options for this client.retryPolicy
(com.azure.core.http.policy.RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.serviceVersion
(LogsIngestionServiceVersion serviceVersion) The service version to use when creating the client.
-
Constructor Details
-
LogsIngestionClientBuilder
public LogsIngestionClientBuilder()
-
-
Method Details
-
endpoint
Sets the log query endpoint.- Specified by:
endpoint
in interfacecom.azure.core.client.traits.EndpointTrait<LogsIngestionClientBuilder>
- Parameters:
endpoint
- the host value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
pipeline
Sets The HTTP pipeline to send requests through.- Specified by:
pipeline
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
pipeline
- the pipeline value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
httpClient
Sets The HTTP client used to send the request.- Specified by:
httpClient
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
httpClient
- the httpClient value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
configuration
Sets The configuration store that is used during construction of the service client.- Specified by:
configuration
in interfacecom.azure.core.client.traits.ConfigurationTrait<LogsIngestionClientBuilder>
- Parameters:
configuration
- the configuration value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
httpLogOptions
public LogsIngestionClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.- Specified by:
httpLogOptions
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
addPolicy
public LogsIngestionClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.- Specified by:
addPolicy
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
retryOptions
public LogsIngestionClientBuilder retryOptions(com.azure.core.http.policy.RetryOptions retryOptions) Sets the retry options for this client.- Specified by:
retryOptions
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
retryOptions
- the retry options for this client.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
credential
public LogsIngestionClientBuilder credential(com.azure.core.credential.TokenCredential tokenCredential) Sets The TokenCredential used for authentication.- Specified by:
credential
in interfacecom.azure.core.client.traits.TokenCredentialTrait<LogsIngestionClientBuilder>
- Parameters:
tokenCredential
- the tokenCredential value.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
clientOptions
Set theClientOptions
used for creating the client.- Specified by:
clientOptions
in interfacecom.azure.core.client.traits.HttpTrait<LogsIngestionClientBuilder>
- Parameters:
clientOptions
- TheClientOptions
.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
serviceVersion
The service version to use when creating the client.- Parameters:
serviceVersion
- TheLogsIngestionServiceVersion
.- Returns:
- the updated
LogsIngestionClientBuilder
.
-
buildClient
Creates a synchronous client with the configured options in this builder.- Returns:
- A synchronous
LogsIngestionClient
.
-
buildAsyncClient
Creates an asynchronous client with the configured options in this builder.- Returns:
- An asynchronous
LogsIngestionAsyncClient
.
-