@Validated @ConfigurationProperties(value="azure.cosmos") public class CosmosProperties extends Object
| Constructor and Description |
|---|
CosmosProperties() |
| Modifier and Type | Method and Description |
|---|---|
com.azure.cosmos.ConnectionMode |
getConnectionMode() |
com.azure.cosmos.ConsistencyLevel |
getConsistencyLevel() |
String |
getDatabase() |
String |
getKey() |
com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor |
getResponseDiagnosticsProcessor() |
String |
getUri() |
boolean |
isAllowTelemetry()
Deprecated.
|
boolean |
isPopulateQueryMetrics() |
void |
setAllowTelemetry(boolean allowTelemetry) |
void |
setConnectionMode(com.azure.cosmos.ConnectionMode connectionMode) |
void |
setConsistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel) |
void |
setDatabase(String databaseName) |
void |
setKey(String key) |
void |
setPopulateQueryMetrics(boolean populateQueryMetrics) |
void |
setResponseDiagnosticsProcessor(com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor responseDiagnosticsProcessor) |
void |
setUri(String uri) |
public String getUri()
public void setUri(String uri)
public String getKey()
public void setKey(String key)
public String getDatabase()
public void setDatabase(String databaseName)
public com.azure.cosmos.ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(com.azure.cosmos.ConsistencyLevel consistencyLevel)
@Deprecated @DeprecatedConfigurationProperty(reason="Deprecate the telemetry endpoint and use HTTP header User Agent instead.") public boolean isAllowTelemetry()
public void setAllowTelemetry(boolean allowTelemetry)
public boolean isPopulateQueryMetrics()
public void setPopulateQueryMetrics(boolean populateQueryMetrics)
public com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor getResponseDiagnosticsProcessor()
public void setResponseDiagnosticsProcessor(com.azure.spring.data.cosmos.core.ResponseDiagnosticsProcessor responseDiagnosticsProcessor)
public com.azure.cosmos.ConnectionMode getConnectionMode()
public void setConnectionMode(com.azure.cosmos.ConnectionMode connectionMode)
Copyright © 2021 Microsoft Corporation. All rights reserved.