Class BlobBatchClientBuilder

java.lang.Object
com.azure.storage.blob.batch.BlobBatchClientBuilder

public final class BlobBatchClientBuilder extends Object
This class provides a fluent builder API to help aid the configuration and instantiation of BlobBatchClients and BlobBatchAsyncClients when buildClient and buildAsyncClient as called respectively.
  • Constructor Details

    • BlobBatchClientBuilder

      public BlobBatchClientBuilder(com.azure.storage.blob.BlobServiceClient client)
      Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceClient.
      Parameters:
      client - BlobServiceClient whose properties are used to configure the builder.
    • BlobBatchClientBuilder

      public BlobBatchClientBuilder(com.azure.storage.blob.BlobServiceAsyncClient client)
      Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceAsyncClient.
      Parameters:
      client - BlobServiceAsyncClient whose properties are used to configure the builder.
    • BlobBatchClientBuilder

      public BlobBatchClientBuilder(com.azure.storage.blob.BlobContainerClient client)
      Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerClient.
      Parameters:
      client - BlobContainerClient whose properties are used to configure the builder.
    • BlobBatchClientBuilder

      public BlobBatchClientBuilder(com.azure.storage.blob.BlobContainerAsyncClient client)
      Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerAsyncClient.
      Parameters:
      client - BlobContainerAsyncClient whose properties are used to configure the builder.
  • Method Details

    • buildClient

      public BlobBatchClient buildClient()
      Creates a BlobBatchClient based on options set in the builder.

      Code sample

       BlobBatchClient batchClient = new BlobBatchClientBuilder(blobServiceClient).buildClient();
       
      Returns:
      a BlobBatchClient created from the configurations in this builder.
    • buildAsyncClient

      public BlobBatchAsyncClient buildAsyncClient()
      Creates a BlobBatchAsyncClient based on options set in the builder.

      Code sample

       BlobBatchAsyncClient batchClient = new BlobBatchClientBuilder(blobServiceAsyncClient).buildAsyncClient();
       
      Returns:
      a BlobBatchAsyncClient created from the configurations in this builder.