Package com.azure.quantum.jobs
Class QuantumClientBuilder
java.lang.Object
com.azure.quantum.jobs.QuantumClientBuilder
A builder for creating a new instance of the QuantumClient type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.Builds an instance of JobsAsyncClient async client.Builds an instance of JobsClient sync client.Builds an instance of ProvidersAsyncClient async client.Builds an instance of ProvidersClient sync client.Builds an instance of QuotasAsyncClient async client.Builds an instance of QuotasClient sync client.Builds an instance of StorageAsyncClient async client.Builds an instance of StorageClient 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 server parameter.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.resourceGroupName
(String resourceGroupName) Sets Name of an Azure resource group.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.subscriptionId
(String subscriptionId) Sets The Azure subscription ID.workspaceName
(String workspaceName) Sets Name of the workspace.
-
Constructor Details
-
QuantumClientBuilder
public QuantumClientBuilder()Create an instance of the QuantumClientBuilder.
-
-
Method Details
-
subscriptionId
Sets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).- Parameters:
subscriptionId
- the subscriptionId value.- Returns:
- the QuantumClientBuilder.
-
resourceGroupName
Sets Name of an Azure resource group.- Parameters:
resourceGroupName
- the resourceGroupName value.- Returns:
- the QuantumClientBuilder.
-
workspaceName
Sets Name of the workspace.- Parameters:
workspaceName
- the workspaceName value.- Returns:
- the QuantumClientBuilder.
-
host
Sets server parameter.- Parameters:
host
- the host value.- Returns:
- the QuantumClientBuilder.
-
pipeline
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the QuantumClientBuilder.
-
serializerAdapter
Sets The serializer to serialize an object into a string.- Parameters:
serializerAdapter
- the serializerAdapter value.- Returns:
- the QuantumClientBuilder.
-
httpClient
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the QuantumClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the QuantumClientBuilder.
-
credential
Sets The TokenCredential used for authentication.- Parameters:
tokenCredential
- the tokenCredential value.- Returns:
- the QuantumClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the QuantumClientBuilder.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the QuantumClientBuilder.
-
addPolicy
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the QuantumClientBuilder.
-
buildJobsAsyncClient
Builds an instance of JobsAsyncClient async client.- Returns:
- an instance of JobsAsyncClient.
-
buildProvidersAsyncClient
Builds an instance of ProvidersAsyncClient async client.- Returns:
- an instance of ProvidersAsyncClient.
-
buildStorageAsyncClient
Builds an instance of StorageAsyncClient async client.- Returns:
- an instance of StorageAsyncClient.
-
buildQuotasAsyncClient
Builds an instance of QuotasAsyncClient async client.- Returns:
- an instance of QuotasAsyncClient.
-
buildJobsClient
Builds an instance of JobsClient sync client.- Returns:
- an instance of JobsClient.
-
buildProvidersClient
Builds an instance of ProvidersClient sync client.- Returns:
- an instance of ProvidersClient.
-
buildStorageClient
Builds an instance of StorageClient sync client.- Returns:
- an instance of StorageClient.
-
buildQuotasClient
Builds an instance of QuotasClient sync client.- Returns:
- an instance of QuotasClient.
-