public class TableClientBuilder extends Object
Modifier and Type | Method and Description |
---|---|
TableClientBuilder |
addPolicy(com.azure.core.http.policy.HttpPipelinePolicy pipelinePolicy)
Adds a policy to the set of existing policies that are executed after required policies.
|
TableAsyncClient |
buildAsyncClient()
builds an async tableClient
|
TableClient |
buildClient()
builds a sync tableClient
|
TableClientBuilder |
configuration(com.azure.core.util.Configuration configuration)
Sets the configuration store that is used during construction of the service client.
|
TableClientBuilder |
connectionString(String connectionString)
Sets the connection string to help build the client
|
TableClientBuilder |
credential(com.azure.core.credential.TokenCredential credential)
Sets the
TokenCredential used to authenticate HTTP requests. |
TableClientBuilder |
endpoint(String endpoint)
Sets the endpoint for the Azure Storage Table instance that the client will interact with.
|
TableClientBuilder |
httpClient(com.azure.core.http.HttpClient client)
Sets the HTTP client to use for sending and receiving requests to and from the service.
|
TableClientBuilder |
httpLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)
Sets the logging configuration for HTTP requests and responses.
|
TableClientBuilder |
pipeline(com.azure.core.http.HttpPipeline pipeline)
Sets the HTTP pipeline to use for the service client.
|
TableClientBuilder |
retryOptions(com.azure.storage.common.policy.RequestRetryOptions retryOptions)
Sets the request retry options for all the requests made through the client.
|
TableClientBuilder |
sasToken(String sasToken)
Sets the SAS token used to authorize requests sent to the service.
|
TableClientBuilder |
serviceVersion(TablesServiceVersion version)
Sets the
TablesServiceVersion that is used when making API requests. |
TableClientBuilder |
tableName(String tableName)
Sets the table name to help build the client
|
public TableClientBuilder connectionString(String connectionString)
connectionString
- the connection string to the storage accountpublic TableClientBuilder tableName(String tableName)
tableName
- name of the table for which the client is created forpublic TableClient buildClient()
public TableAsyncClient buildAsyncClient()
public TableClientBuilder endpoint(String endpoint)
endpoint
- The URL of the Azure Storage Table instance to send service requests to and receive responses
from.IllegalArgumentException
- If endpoint
isn't a proper URLpublic TableClientBuilder pipeline(com.azure.core.http.HttpPipeline pipeline)
pipeline
- The HTTP pipeline to use for sending service requests and receiving responses.public TableClientBuilder sasToken(String sasToken)
sasToken
- The SAS token to use for authenticating requests.NullPointerException
- If sasToken
is null
.public TableClientBuilder configuration(com.azure.core.util.Configuration configuration)
The default configuration store is a clone of the global
configuration store
, use Configuration.NONE
to bypass using configuration settings during construction.
configuration
- The configuration store used topublic TableClientBuilder credential(com.azure.core.credential.TokenCredential credential)
TokenCredential
used to authenticate HTTP requests.credential
- TokenCredential used to authenticate HTTP requests.NullPointerException
- If credential
is null
.public TableClientBuilder httpClient(com.azure.core.http.HttpClient client)
client
- The HTTP client to use for requests.public TableClientBuilder httpLogOptions(com.azure.core.http.policy.HttpLogOptions logOptions)
If logLevel is not provided, default value of HttpLogDetailLevel.NONE
is set.
logOptions
- The logging configuration to use when sending and receiving HTTP requests/responses.public TableClientBuilder addPolicy(com.azure.core.http.policy.HttpPipelinePolicy pipelinePolicy)
pipelinePolicy
- The retry policy for service requests.NullPointerException
- If policy
is null
.public TableClientBuilder serviceVersion(TablesServiceVersion version)
TablesServiceVersion
that is used when making API requests.version
- TablesServiceVersion
of the service to be used when making requests.public TableClientBuilder retryOptions(com.azure.storage.common.policy.RequestRetryOptions retryOptions)
retryOptions
- RequestRetryOptions
.NullPointerException
- If retryOptions
is null
.Copyright © 2020 Microsoft Corporation. All rights reserved.