Class DatabaseAccountCreateUpdateParameters
java.lang.Object
com.microsoft.azure.ProxyResource
com.microsoft.azure.Resource
com.microsoft.azure.management.cosmosdb.ARMResourceProperties
com.microsoft.azure.management.cosmosdb.DatabaseAccountCreateUpdateParameters
Parameters to create and update Cosmos DB database accounts.
-
Constructor Summary
ConstructorDescriptionCreates an instance of DatabaseAccountCreateUpdateParameters class. -
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 the offer type for the database.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.kind()
Get indicates the type of database account.Get an array that contains the georeplication locations enabled for the Cosmos DB account.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.withDatabaseAccountOfferType
(String databaseAccountOfferType) Set the offer type for the database.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.withKind
(DatabaseAccountKind kind) Set indicates the type of database account.withLocations
(List<Location> locations) Set an array that contains the georeplication locations enabled for the Cosmos DB account.withVirtualNetworkRules
(List<VirtualNetworkRule> virtualNetworkRules) Set list of Virtual Network ACL rules configured for the Cosmos DB account.Methods inherited from class com.microsoft.azure.Resource
getTags, location, withLocation, withTags
Methods inherited from class com.microsoft.azure.ProxyResource
id, name, type
-
Constructor Details
-
DatabaseAccountCreateUpdateParameters
public DatabaseAccountCreateUpdateParameters()Creates an instance of DatabaseAccountCreateUpdateParameters class.
-
-
Method Details
-
kind
Get indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'.- Returns:
- the kind value
-
withKind
Set indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'.- Parameters:
kind
- the kind value to set- Returns:
- the DatabaseAccountCreateUpdateParameters object itself.
-
consistencyPolicy
Get the consistency policy for the Cosmos DB account.- Returns:
- the consistencyPolicy value
-
withConsistencyPolicy
public DatabaseAccountCreateUpdateParameters withConsistencyPolicy(ConsistencyPolicy consistencyPolicy) Set the consistency policy for the Cosmos DB account.- Parameters:
consistencyPolicy
- the consistencyPolicy value to set- Returns:
- the DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-
databaseAccountOfferType
Get the offer type for the database.- Returns:
- the databaseAccountOfferType value
-
withDatabaseAccountOfferType
public DatabaseAccountCreateUpdateParameters withDatabaseAccountOfferType(String databaseAccountOfferType) Set the offer type for the database.- Parameters:
databaseAccountOfferType
- the databaseAccountOfferType value to set- Returns:
- the DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-
isVirtualNetworkFilterEnabled
Get flag to indicate whether to enable/disable Virtual Network ACL rules.- Returns:
- the isVirtualNetworkFilterEnabled value
-
withIsVirtualNetworkFilterEnabled
public DatabaseAccountCreateUpdateParameters withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) Set flag to indicate whether to enable/disable Virtual Network ACL rules.- Parameters:
isVirtualNetworkFilterEnabled
- the isVirtualNetworkFilterEnabled value to set- Returns:
- the DatabaseAccountCreateUpdateParameters 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
public DatabaseAccountCreateUpdateParameters withEnableAutomaticFailover(Boolean enableAutomaticFailover) 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 DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-
virtualNetworkRules
Get list of Virtual Network ACL rules configured for the Cosmos DB account.- Returns:
- the virtualNetworkRules value
-
withVirtualNetworkRules
public DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-
enableMultipleWriteLocations
Get enables the account to write in multiple locations.- Returns:
- the enableMultipleWriteLocations value
-
withEnableMultipleWriteLocations
public DatabaseAccountCreateUpdateParameters withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations) Set enables the account to write in multiple locations.- Parameters:
enableMultipleWriteLocations
- the enableMultipleWriteLocations value to set- Returns:
- the DatabaseAccountCreateUpdateParameters object itself.
-
enableCassandraConnector
Get enables the cassandra connector on the Cosmos DB C* account.- Returns:
- the enableCassandraConnector value
-
withEnableCassandraConnector
public DatabaseAccountCreateUpdateParameters withEnableCassandraConnector(Boolean enableCassandraConnector) Set enables the cassandra connector on the Cosmos DB C* account.- Parameters:
enableCassandraConnector
- the enableCassandraConnector value to set- Returns:
- the DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-
disableKeyBasedMetadataWriteAccess
Get disable write operations on metadata resources (databases, containers, throughput) via account keys.- Returns:
- the disableKeyBasedMetadataWriteAccess value
-
withDisableKeyBasedMetadataWriteAccess
public DatabaseAccountCreateUpdateParameters 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 DatabaseAccountCreateUpdateParameters object itself.
-