Service Client Builder Class
This class provides a fluent builder API to help aid the configuration and instantiation of BlobServiceClient and BlobServiceAsyncClient, call buildClient() and buildAsyncClient() respectively to construct an instance of the desired client.
The following information must be provided on this builder:
- the endpoint through
.endpoint(), in the format of
- the credential through
.connectionString()if the container is not publicly accessible.
public final class BlobServiceClientBuilder
Adds a pipeline policy to apply on each request sent. The policy will be added after the retry policy. If the method is called multiple times, all policies will be added and their order preserved.
Sets the BlobContainerEncryptionScope that is used to determine how blob contents are encrypted on the server.
Sets the client options for all the requests made through the client.
Sets the configuration object used to retrieve environment configuration values during building of the client.
Sets the connection string to connect to the service.
Sets the AzureSasCredential used to authorize requests sent to the service.
Sets the TokenCredential used to authorize requests sent to the service.
Sets the StorageSharedKeyCredential used to authorize requests sent to the service.
Sets the CustomerProvidedKey that is used to encrypt blob contents on the server.
Sets the blob service endpoint, additionally parses it for information (SAS token)
Gets the default Storage whitelist log headers and query parameters.
Sets the HttpClient to use for sending a receiving requests to and from the service.
Sets the HttpLogOptions for service requests.
Sets the request retry options for all the requests made through the client.
Sets the SAS token used to authorize requests sent to the service.
Sets the BlobServiceVersion that is used when making API requests.
If a service version is not provided, the service version that will be used will be the latest known service version based on the version of the client library being used. If no service version is specified, updating to a newer version of the client library will have the result of potentially moving to a newer service version.
Targeting a specific service version may also mean that the service will return an error for newer APIs.