Package com.azure.storage.blob.batch
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 ofBlobBatchClientsandBlobBatchAsyncClientswhenbuildClientandbuildAsyncClientas called respectively.
-
-
Constructor Summary
Constructors Constructor Description BlobBatchClientBuilder(BlobContainerAsyncClient client)Constructs theBlobBatchClientBuilderusing thecontainer URLandHttpPipelineproperties of the passedBlobContainerAsyncClient.BlobBatchClientBuilder(BlobContainerClient client)Constructs theBlobBatchClientBuilderusing thecontainer URLandHttpPipelineproperties of the passedBlobContainerClient.BlobBatchClientBuilder(BlobServiceAsyncClient client)Constructs theBlobBatchClientBuilderusing theaccount URLandHttpPipelineproperties of the passedBlobServiceAsyncClient.BlobBatchClientBuilder(BlobServiceClient client)Constructs theBlobBatchClientBuilderusing theaccount URLandHttpPipelineproperties of the passedBlobServiceClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobBatchAsyncClientbuildAsyncClient()Creates aBlobBatchAsyncClientbased on options set in the builder.BlobBatchClientbuildClient()Creates aBlobBatchClientbased on options set in the builder.
-
-
-
Constructor Detail
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceClient client)
Constructs theBlobBatchClientBuilderusing theaccount URLandHttpPipelineproperties of the passedBlobServiceClient.- Parameters:
client-BlobServiceClientwhose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceAsyncClient client)
Constructs theBlobBatchClientBuilderusing theaccount URLandHttpPipelineproperties of the passedBlobServiceAsyncClient.- Parameters:
client-BlobServiceAsyncClientwhose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerClient client)
Constructs theBlobBatchClientBuilderusing thecontainer URLandHttpPipelineproperties of the passedBlobContainerClient.- Parameters:
client-BlobContainerClientwhose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerAsyncClient client)
Constructs theBlobBatchClientBuilderusing thecontainer URLandHttpPipelineproperties of the passedBlobContainerAsyncClient.- Parameters:
client-BlobContainerAsyncClientwhose properties are used to configure the builder.
-
-
Method Detail
-
buildClient
public BlobBatchClient buildClient()
Creates aBlobBatchClientbased on options set in the builder.Code sample
BlobBatchClient batchClient = new BlobBatchClientBuilder(blobServiceClient).buildClient();
- Returns:
- a
BlobBatchClientcreated from the configurations in this builder.
-
buildAsyncClient
public BlobBatchAsyncClient buildAsyncClient()
Creates aBlobBatchAsyncClientbased on options set in the builder.Code sample
BlobBatchAsyncClient batchClient = new BlobBatchClientBuilder(blobServiceAsyncClient).buildAsyncClient();
- Returns:
- a
BlobBatchAsyncClientcreated from the configurations in this builder.
-
-