Modifier and Type | Method and Description |
---|---|
static CosmosClientBuilder |
CosmosAsyncClient.cosmosClientBuilder()
Instantiate the cosmos client builder to build cosmos client
|
static CosmosClientBuilder |
CosmosClient.cosmosClientBuilder()
Instantiate the cosmos client builder to build cosmos client
|
CosmosClientBuilder |
CosmosClientBuilder.setConnectionPolicy(ConnectionPolicy connectionPolicy)
Sets the
ConnectionPolicy to be used |
CosmosClientBuilder |
CosmosClientBuilder.setConsistencyLevel(ConsistencyLevel desiredConsistencyLevel)
Sets the
ConsistencyLevel to be used |
CosmosClientBuilder |
CosmosClientBuilder.setCosmosKeyCredential(CosmosKeyCredential cosmosKeyCredential)
Sets the
CosmosKeyCredential to be used |
CosmosClientBuilder |
CosmosClientBuilder.setEndpoint(String endpoint)
Sets the Azure Cosmos DB endpoint the SDK will connect to
|
CosmosClientBuilder |
CosmosClientBuilder.setKey(String key)
Sets either a master or readonly key used to perform authentication
for accessing resource.
|
CosmosClientBuilder |
CosmosClientBuilder.setPermissions(List<com.azure.cosmos.implementation.Permission> permissions)
Sets the permission list, which contains the
resource tokens needed to access resources.
|
CosmosClientBuilder |
CosmosClientBuilder.setResourceToken(String resourceToken)
Sets a resource token used to perform authentication
for accessing resource.
|
CosmosClientBuilder |
CosmosClientBuilder.setTokenResolver(TokenResolver tokenResolver)
Sets the token resolver
|
Copyright © 2020 Microsoft Corporation. All rights reserved.