Class DatabaseAccountUpdateParameters
java.lang.Object
com.microsoft.azure.management.cosmosdb.DatabaseAccountUpdateParameters
Parameters for patching Azure Cosmos DB database account properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet list of Cosmos DB capabilities for the account.Get the cassandra connector offer type for the Cosmos DB database C* account.Get the consistency policy for the Cosmos DB account.Get disable write operations on metadata resources (databases, containers, throughput) via account keys.Get enables automatic failover of the write region in the rare event that the region is unavailable due to an outage.Get enables the cassandra connector on the Cosmos DB C* account.Get enables the account to write in multiple locations.Get cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.Get flag to indicate whether to enable/disable Virtual Network ACL rules.location()
Get the location of the resource group to which the resource belongs.Get an array that contains the georeplication locations enabled for the Cosmos DB account.tags()
Get the tags value.Get list of Virtual Network ACL rules configured for the Cosmos DB account.withCapabilities
(List<Capability> capabilities) Set list of Cosmos DB capabilities for the account.withConnectorOffer
(ConnectorOffer connectorOffer) Set the cassandra connector offer type for the Cosmos DB database C* account.withConsistencyPolicy
(ConsistencyPolicy consistencyPolicy) Set the consistency policy for the Cosmos DB account.withDisableKeyBasedMetadataWriteAccess
(Boolean disableKeyBasedMetadataWriteAccess) Set disable write operations on metadata resources (databases, containers, throughput) via account keys.withEnableAutomaticFailover
(Boolean enableAutomaticFailover) Set enables automatic failover of the write region in the rare event that the region is unavailable due to an outage.withEnableCassandraConnector
(Boolean enableCassandraConnector) Set enables the cassandra connector on the Cosmos DB C* account.withEnableMultipleWriteLocations
(Boolean enableMultipleWriteLocations) Set enables the account to write in multiple locations.withIpRangeFilter
(String ipRangeFilter) Set cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.withIsVirtualNetworkFilterEnabled
(Boolean isVirtualNetworkFilterEnabled) Set flag to indicate whether to enable/disable Virtual Network ACL rules.withLocation
(String location) Set the location of the resource group to which the resource belongs.withLocations
(List<Location> locations) Set an array that contains the georeplication locations enabled for the Cosmos DB account.Set the tags value.withVirtualNetworkRules
(List<VirtualNetworkRule> virtualNetworkRules) Set list of Virtual Network ACL rules configured for the Cosmos DB account.
-
Constructor Details
-
DatabaseAccountUpdateParameters
public DatabaseAccountUpdateParameters()
-
-
Method Details
-
tags
Get the tags value.- Returns:
- the tags value
-
withTags
Set the tags value.- Parameters:
tags
- the tags value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
location
Get the location of the resource group to which the resource belongs.- Returns:
- the location value
-
withLocation
Set the location of the resource group to which the resource belongs.- Parameters:
location
- the location value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
consistencyPolicy
Get the consistency policy for the Cosmos DB account.- Returns:
- the consistencyPolicy value
-
withConsistencyPolicy
Set the consistency policy for the Cosmos DB account.- Parameters:
consistencyPolicy
- the consistencyPolicy value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
locations
Get an array that contains the georeplication locations enabled for the Cosmos DB account.- Returns:
- the locations value
-
withLocations
Set an array that contains the georeplication locations enabled for the Cosmos DB account.- Parameters:
locations
- the locations value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
ipRangeFilter
Get cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.- Returns:
- the ipRangeFilter value
-
withIpRangeFilter
Set cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.- Parameters:
ipRangeFilter
- the ipRangeFilter value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
isVirtualNetworkFilterEnabled
Get flag to indicate whether to enable/disable Virtual Network ACL rules.- Returns:
- the isVirtualNetworkFilterEnabled value
-
withIsVirtualNetworkFilterEnabled
public DatabaseAccountUpdateParameters withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) Set flag to indicate whether to enable/disable Virtual Network ACL rules.- Parameters:
isVirtualNetworkFilterEnabled
- the isVirtualNetworkFilterEnabled value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
enableAutomaticFailover
Get enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.- Returns:
- the enableAutomaticFailover value
-
withEnableAutomaticFailover
Set enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.- Parameters:
enableAutomaticFailover
- the enableAutomaticFailover value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
capabilities
Get list of Cosmos DB capabilities for the account.- Returns:
- the capabilities value
-
withCapabilities
Set list of Cosmos DB capabilities for the account.- Parameters:
capabilities
- the capabilities value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
virtualNetworkRules
Get list of Virtual Network ACL rules configured for the Cosmos DB account.- Returns:
- the virtualNetworkRules value
-
withVirtualNetworkRules
public DatabaseAccountUpdateParameters withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) Set list of Virtual Network ACL rules configured for the Cosmos DB account.- Parameters:
virtualNetworkRules
- the virtualNetworkRules value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
enableMultipleWriteLocations
Get enables the account to write in multiple locations.- Returns:
- the enableMultipleWriteLocations value
-
withEnableMultipleWriteLocations
public DatabaseAccountUpdateParameters withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations) Set enables the account to write in multiple locations.- Parameters:
enableMultipleWriteLocations
- the enableMultipleWriteLocations value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
enableCassandraConnector
Get enables the cassandra connector on the Cosmos DB C* account.- Returns:
- the enableCassandraConnector value
-
withEnableCassandraConnector
public DatabaseAccountUpdateParameters withEnableCassandraConnector(Boolean enableCassandraConnector) Set enables the cassandra connector on the Cosmos DB C* account.- Parameters:
enableCassandraConnector
- the enableCassandraConnector value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
connectorOffer
Get the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'.- Returns:
- the connectorOffer value
-
withConnectorOffer
Set the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'.- Parameters:
connectorOffer
- the connectorOffer value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-
disableKeyBasedMetadataWriteAccess
Get disable write operations on metadata resources (databases, containers, throughput) via account keys.- Returns:
- the disableKeyBasedMetadataWriteAccess value
-
withDisableKeyBasedMetadataWriteAccess
public DatabaseAccountUpdateParameters withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess) Set disable write operations on metadata resources (databases, containers, throughput) via account keys.- Parameters:
disableKeyBasedMetadataWriteAccess
- the disableKeyBasedMetadataWriteAccess value to set- Returns:
- the DatabaseAccountUpdateParameters object itself.
-