BlobBatchClientBuilder Class
- java.
lang. Object - com.
azure. storage. blob. batch. BlobBatchClientBuilder
- com.
public final class BlobBatchClientBuilder
This class provides a fluent builder API to help aid the configuration and instantiation of BlobBatchClient and BlobBatchAsyncClient when buildClient() and buildAsyncClient() as called respectively.
Constructor Summary
| Constructor | Description |
|---|---|
| BlobBatchClientBuilder(BlobContainerAsyncClient client) |
Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerAsyncClient. |
| BlobBatchClientBuilder(BlobContainerClient client) |
Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerClient. |
| BlobBatchClientBuilder(BlobServiceAsyncClient client) |
Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceAsyncClient. |
| BlobBatchClientBuilder(BlobServiceClient client) |
Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceClient. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Blob |
buildAsyncClient()
Creates a BlobBatchAsyncClient based on options set in the builder. |
|
Blob |
buildClient()
Creates a BlobBatchClient based on options set in the builder. |
Methods inherited from java.lang.Object
Constructor Details
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerAsyncClient client)
Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerAsyncClient.
Parameters:
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerClient client)
Constructs the BlobBatchClientBuilder using the container URL and HttpPipeline properties of the passed BlobContainerClient.
Parameters:
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceAsyncClient client)
Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceAsyncClient.
Parameters:
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceClient client)
Constructs the BlobBatchClientBuilder using the account URL and HttpPipeline properties of the passed BlobServiceClient.
Parameters:
Method Details
buildAsyncClient
public BlobBatchAsyncClient buildAsyncClient()
Creates a BlobBatchAsyncClient based on options set in the builder.
Code sample
BlobBatchAsyncClient batchClient = new BlobBatchClientBuilder(blobServiceAsyncClient).buildAsyncClient();
Returns:
buildClient
public BlobBatchClient buildClient()
Creates a BlobBatchClient based on options set in the builder.
Code sample
BlobBatchClient batchClient = new BlobBatchClientBuilder(blobServiceClient).buildClient();
Returns: