Class TableServiceClientBuilder

java.lang.Object
com.azure.data.tables.TableServiceClientBuilder
All Implemented Interfaces:
AzureNamedKeyCredentialTrait<TableServiceClientBuilder>, AzureSasCredentialTrait<TableServiceClientBuilder>, ConfigurationTrait<TableServiceClientBuilder>, ConnectionStringTrait<TableServiceClientBuilder>, EndpointTrait<TableServiceClientBuilder>, HttpTrait<TableServiceClientBuilder>, TokenCredentialTrait<TableServiceClientBuilder>

This class provides a fluent builder API to help aid the configuration and instantiation of TableServiceClient and TableServiceAsyncClient objects. Call buildClient() or buildAsyncClient(), respectively, to construct an instance of the desired client.

The minimal configuration options required by TableServiceClientBuilder to build a TableServiceClient or TableServiceAsyncClient are an endpoint and a form of authentication, which can be set via: connectionString(String), credential(AzureSasCredential), credential(AzureNamedKeyCredential) or sasToken(String)

Samples to construct a sync client

 TableServiceClient tableServiceClient = new TableServiceClientBuilder()
     .endpoint("https://myvault.azure.net/")
     .credential(new AzureNamedKeyCredential("name", "key"))
     .buildClient();
 

Samples to construct an async client

 TableServiceAsyncClient tableServiceAsyncClient = new TableServiceClientBuilder()
     .endpoint("https://myvault.azure.net/")
     .credential(new AzureNamedKeyCredential("name", "key"))
     .buildAsyncClient();
 
See Also: