Class QuantumClientBuilder

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

public final class QuantumClientBuilder extends Object
A builder for creating a new instance of the QuantumClient type.
  • Constructor Details

    • QuantumClientBuilder

      public QuantumClientBuilder()
      Create an instance of the QuantumClientBuilder.
  • Method Details

    • 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.
    • resourceGroupName

      public QuantumClientBuilder resourceGroupName(String resourceGroupName)
      Sets Name of an Azure resource group.
      Parameters:
      resourceGroupName - the resourceGroupName value.
      Returns:
      the QuantumClientBuilder.
    • workspaceName

      public QuantumClientBuilder workspaceName(String workspaceName)
      Sets Name of the workspace.
      Parameters:
      workspaceName - the workspaceName value.
      Returns:
      the QuantumClientBuilder.
    • host

      public QuantumClientBuilder host(String host)
      Sets server parameter.
      Parameters:
      host - the host 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.
    • serializerAdapter

      public QuantumClientBuilder serializerAdapter(SerializerAdapter serializerAdapter)
      Sets The serializer to serialize an object into a string.
      Parameters:
      serializerAdapter - the serializerAdapter 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.
    • 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.
    • httpLogOptions

      public QuantumClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions 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.
    • 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.
    • buildProvidersAsyncClient

      public ProvidersAsyncClient buildProvidersAsyncClient()
      Builds an instance of ProvidersAsyncClient async client.
      Returns:
      an instance of ProvidersAsyncClient.
    • buildStorageAsyncClient

      public StorageAsyncClient buildStorageAsyncClient()
      Builds an instance of StorageAsyncClient async client.
      Returns:
      an instance of StorageAsyncClient.
    • buildQuotasAsyncClient

      public QuotasAsyncClient buildQuotasAsyncClient()
      Builds an instance of QuotasAsyncClient async client.
      Returns:
      an instance of QuotasAsyncClient.
    • buildJobsClient

      public JobsClient buildJobsClient()
      Builds an instance of JobsClient sync client.
      Returns:
      an instance of JobsClient.
    • buildProvidersClient

      public ProvidersClient buildProvidersClient()
      Builds an instance of ProvidersClient sync client.
      Returns:
      an instance of ProvidersClient.
    • buildStorageClient

      public StorageClient buildStorageClient()
      Builds an instance of StorageClient sync client.
      Returns:
      an instance of StorageClient.
    • buildQuotasClient

      public QuotasClient buildQuotasClient()
      Builds an instance of QuotasClient sync client.
      Returns:
      an instance of QuotasClient.