Share via


BlobBatchClientBuilder Class

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

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
BlobBatchAsyncClient buildAsyncClient()

Creates a BlobBatchAsyncClient based on options set in the builder.

BlobBatchClient 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:

client - BlobContainerAsyncClient whose properties are used to configure the builder.

BlobBatchClientBuilder

public BlobBatchClientBuilder(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(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(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.

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:

a BlobBatchAsyncClient created from the configurations in this builder.

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.

Applies to