@Validated @ConfigurationProperties(value="azure.cosmos") public class CosmosProperties extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_URI_REGEX |
static String |
URI_REGEX |
| Constructor and Description |
|---|
CosmosProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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() |
boolean |
isValidateUri() |
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) |
void |
setValidateUri(boolean validateUri) |
public static final String URI_REGEX
public static final String LOCAL_URI_REGEX
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic 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 isValidateUri()
public void setValidateUri(boolean validateUri)
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)
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.