QuantumClientBuilder Class

  • java.lang.Object
    • com.azure.quantum.jobs.QuantumClientBuilder

public final class QuantumClientBuilder

A builder for creating a new instance of the QuantumClient type.

Constructor Summary

Constructor Description
QuantumClientBuilder()

Create an instance of the QuantumClientBuilder.

Method Summary

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

Adds a custom Http pipeline policy.

JobsAsyncClient buildJobsAsyncClient()

Builds an instance of JobsAsyncClient async client.

JobsClient buildJobsClient()

Builds an instance of JobsClient sync client.

ProvidersAsyncClient buildProvidersAsyncClient()

Builds an instance of ProvidersAsyncClient async client.

ProvidersClient buildProvidersClient()

Builds an instance of ProvidersClient sync client.

QuotasAsyncClient buildQuotasAsyncClient()

Builds an instance of QuotasAsyncClient async client.

QuotasClient buildQuotasClient()

Builds an instance of QuotasClient sync client.

StorageAsyncClient buildStorageAsyncClient()

Builds an instance of StorageAsyncClient async client.

StorageClient buildStorageClient()

Builds an instance of StorageClient sync client.

QuantumClientBuilder configuration(Configuration configuration)

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

QuantumClientBuilder credential(TokenCredential tokenCredential)

Sets The TokenCredential used for authentication.

QuantumClientBuilder host(String host)

Sets server parameter.

QuantumClientBuilder httpClient(HttpClient httpClient)

Sets The HTTP client used to send the request.

QuantumClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

Sets The logging configuration for HTTP requests and responses.

QuantumClientBuilder pipeline(HttpPipeline pipeline)

Sets The HTTP pipeline to send requests through.

QuantumClientBuilder resourceGroupName(String resourceGroupName)

Sets Name of an Azure resource group.

QuantumClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

QuantumClientBuilder serializerAdapter(SerializerAdapter serializerAdapter)

Sets The serializer to serialize an object into a string.

QuantumClientBuilder subscriptionId(String subscriptionId)

Sets The Azure subscription ID.

QuantumClientBuilder workspaceName(String workspaceName)

Sets Name of the workspace.

Methods inherited from java.lang.Object

Constructor Details

QuantumClientBuilder

public QuantumClientBuilder()

Create an instance of the QuantumClientBuilder.

Method Details

addPolicy

public QuantumClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

Adds a custom Http pipeline policy.

Parameters:

customPolicy - The custom Http pipeline policy to add.

Returns:

the QuantumClientBuilder.

buildJobsAsyncClient

public JobsAsyncClient buildJobsAsyncClient()

Builds an instance of JobsAsyncClient async client.

Returns:

an instance of JobsAsyncClient.

buildJobsClient

public JobsClient buildJobsClient()

Builds an instance of JobsClient sync client.

Returns:

an instance of JobsClient.

buildProvidersAsyncClient

public ProvidersAsyncClient buildProvidersAsyncClient()

Builds an instance of ProvidersAsyncClient async client.

Returns:

an instance of ProvidersAsyncClient.

buildProvidersClient

public ProvidersClient buildProvidersClient()

Builds an instance of ProvidersClient sync client.

Returns:

an instance of ProvidersClient.

buildQuotasAsyncClient

public QuotasAsyncClient buildQuotasAsyncClient()

Builds an instance of QuotasAsyncClient async client.

Returns:

an instance of QuotasAsyncClient.

buildQuotasClient

public QuotasClient buildQuotasClient()

Builds an instance of QuotasClient sync client.

Returns:

an instance of QuotasClient.

buildStorageAsyncClient

public StorageAsyncClient buildStorageAsyncClient()

Builds an instance of StorageAsyncClient async client.

Returns:

an instance of StorageAsyncClient.

buildStorageClient

public StorageClient buildStorageClient()

Builds an instance of StorageClient sync client.

Returns:

an instance of StorageClient.

configuration

public QuantumClientBuilder configuration(Configuration configuration)

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

Parameters:

configuration - the configuration value.

Returns:

the QuantumClientBuilder.

credential

public QuantumClientBuilder credential(TokenCredential tokenCredential)

Sets The TokenCredential used for authentication.

Parameters:

tokenCredential - the tokenCredential value.

Returns:

the QuantumClientBuilder.

host

public QuantumClientBuilder host(String host)

Sets server parameter.

Parameters:

host - the host value.

Returns:

the QuantumClientBuilder.

httpClient

public QuantumClientBuilder httpClient(HttpClient httpClient)

Sets The HTTP client used to send the request.

Parameters:

httpClient - the httpClient value.

Returns:

the QuantumClientBuilder.

httpLogOptions

public QuantumClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

Sets The logging configuration for HTTP requests and responses.

Parameters:

httpLogOptions - the httpLogOptions value.

Returns:

the QuantumClientBuilder.

pipeline

public QuantumClientBuilder pipeline(HttpPipeline pipeline)

Sets The HTTP pipeline to send requests through.

Parameters:

pipeline - the pipeline value.

Returns:

the QuantumClientBuilder.

resourceGroupName

public QuantumClientBuilder resourceGroupName(String resourceGroupName)

Sets Name of an Azure resource group.

Parameters:

resourceGroupName - the resourceGroupName value.

Returns:

the QuantumClientBuilder.

retryPolicy

public QuantumClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the QuantumClientBuilder.

serializerAdapter

public QuantumClientBuilder serializerAdapter(SerializerAdapter serializerAdapter)

Sets The serializer to serialize an object into a string.

Parameters:

serializerAdapter - the serializerAdapter value.

Returns:

the QuantumClientBuilder.

subscriptionId

public QuantumClientBuilder subscriptionId(String 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.

workspaceName

public QuantumClientBuilder workspaceName(String workspaceName)

Sets Name of the workspace.

Parameters:

workspaceName - the workspaceName value.

Returns:

the QuantumClientBuilder.

Applies to