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 ofBlobBatchClients
andBlobBatchAsyncClients
whenbuildClient
andbuildAsyncClient
as called respectively.
-
-
Constructor Summary
Constructors Constructor Description BlobBatchClientBuilder(BlobContainerAsyncClient client)
Constructs theBlobBatchClientBuilder
using thecontainer URL
andHttpPipeline
properties of the passedBlobContainerAsyncClient
.BlobBatchClientBuilder(BlobContainerClient client)
Constructs theBlobBatchClientBuilder
using thecontainer URL
andHttpPipeline
properties of the passedBlobContainerClient
.BlobBatchClientBuilder(BlobServiceAsyncClient client)
Constructs theBlobBatchClientBuilder
using theaccount URL
andHttpPipeline
properties of the passedBlobServiceAsyncClient
.BlobBatchClientBuilder(BlobServiceClient client)
Constructs theBlobBatchClientBuilder
using theaccount URL
andHttpPipeline
properties of the passedBlobServiceClient
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobBatchAsyncClient
buildAsyncClient()
Creates aBlobBatchAsyncClient
based on options set in the builder.BlobBatchClient
buildClient()
Creates aBlobBatchClient
based on options set in the builder.
-
-
-
Constructor Detail
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceClient client)
Constructs theBlobBatchClientBuilder
using theaccount URL
andHttpPipeline
properties of the passedBlobServiceClient
.- Parameters:
client
-BlobServiceClient
whose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobServiceAsyncClient client)
Constructs theBlobBatchClientBuilder
using theaccount URL
andHttpPipeline
properties of the passedBlobServiceAsyncClient
.- Parameters:
client
-BlobServiceAsyncClient
whose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerClient client)
Constructs theBlobBatchClientBuilder
using thecontainer URL
andHttpPipeline
properties of the passedBlobContainerClient
.- Parameters:
client
-BlobContainerClient
whose properties are used to configure the builder.
-
BlobBatchClientBuilder
public BlobBatchClientBuilder(BlobContainerAsyncClient client)
Constructs theBlobBatchClientBuilder
using thecontainer URL
andHttpPipeline
properties of the passedBlobContainerAsyncClient
.- Parameters:
client
-BlobContainerAsyncClient
whose properties are used to configure the builder.
-
-
Method Detail
-
buildClient
public BlobBatchClient buildClient()
Creates aBlobBatchClient
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 aBlobBatchAsyncClient
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.
-
-