public class TableServiceClientBuilder extends Object
Constructor and Description |
---|
TableServiceClientBuilder()
constructor
|
Modifier and Type | Method and Description |
---|---|
TableServiceClientBuilder |
addPolicy(com.azure.core.http.policy.HttpPipelinePolicy pipelinePolicy)
Adds a pipeline policy to apply on each request sent.
|
TableServiceAsyncClient |
buildAsyncClient()
builds an async TableServiceAsyncClient
|
TableServiceClient |
buildClient()
builds a sync TableServiceClient
|
TableServiceClientBuilder |
configuration(com.azure.core.util.Configuration configuration)
Sets the configuration object used to retrieve environment configuration values during building of the client.
|
TableServiceClientBuilder |
connectionString(String connectionString)
Sets the connection string to help build the client
|
TableServiceClientBuilder |
credential(com.azure.core.credential.TokenCredential credential)
update credential
|
TableServiceClientBuilder |
endpoint(String endpoint)
Sets the table service endpoint
|
TableServiceClientBuilder |
httpClient(com.azure.core.http.HttpClient httpClient)
Sets the
HttpClient to use for sending a receiving requests to and from the service. |
TableServiceClientBuilder |
httpLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)
Sets the
HttpLogOptions for service requests. |
TableServiceClientBuilder |
pipeline(com.azure.core.http.HttpPipeline pipeline)
Sets the HTTP pipeline to use for the service client.
|
TableServiceClientBuilder |
retryOptions(com.azure.storage.common.policy.RequestRetryOptions retryOptions)
Sets the request retry options for all the requests made through the client.
|
TableServiceClientBuilder |
sasToken(String sasToken)
Sets the SAS token used to authorize requests sent to the service.
|
TableServiceClientBuilder |
serviceVersion(TablesServiceVersion version)
Sets the TablesServiceVersion that is used when making API requests.
|
public TableServiceClient buildClient()
public TableServiceAsyncClient buildAsyncClient()
public TableServiceClientBuilder connectionString(String connectionString)
connectionString
- the connection string to the storage accountpublic TableServiceClientBuilder endpoint(String endpoint)
endpoint
- URL of the servicepublic TableServiceClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
pipeline
- The HTTP pipeline to use for sending service requests and receiving responses.public TableServiceClientBuilder sasToken(String sasToken)
sasToken
- The SAS token to use for authenticating requests.NullPointerException
- If sasToken
is null
.public TableServiceClientBuilder configuration(com.azure.core.util.Configuration configuration)
configuration
- Configuration store used to retrieve environment configurations.public TableServiceClientBuilder credential(com.azure.core.credential.TokenCredential credential)
credential
- the tables shared key credentialNullPointerException
- If credential
is null
.public TableServiceClientBuilder httpClient(com.azure.core.http.HttpClient httpClient)
HttpClient
to use for sending a receiving requests to and from the service.httpClient
- HttpClient to use for requests.public TableServiceClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)
HttpLogOptions
for service requests.logOptions
- The logging configuration to use when sending and receiving HTTP requests/responses.NullPointerException
- If logOptions
is null
.public TableServiceClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy pipelinePolicy)
pipelinePolicy
- a pipeline policyNullPointerException
- If pipelinePolicy
is null
.public TableServiceClientBuilder serviceVersion(TablesServiceVersion version)
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.
version
- TablesServiceVersion
of the service to be used when making requests.public TableServiceClientBuilder retryOptions(com.azure.storage.common.policy.RequestRetryOptions retryOptions)
retryOptions
- RequestRetryOptions
.NullPointerException
- If retryOptions
is null
.Copyright © 2020 Microsoft Corporation. All rights reserved.