DatabaseAccountUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.DatabaseAccountUpdateProperties

Implements

public final class DatabaseAccountUpdateProperties
implements JsonSerializable<DatabaseAccountUpdateProperties>

Properties to update Azure Cosmos DB database accounts.

Constructor Summary

Constructor Description
DatabaseAccountUpdateProperties()

Creates an instance of DatabaseAccountUpdateProperties class.

Method Summary

Modifier and Type Method and Description
AnalyticalStorageConfiguration analyticalStorageConfiguration()

Get the analyticalStorageConfiguration property: Analytical storage specific properties.

ApiProperties apiProperties()

Get the apiProperties property: API specific properties.

BackupPolicy backupPolicy()

Get the backupPolicy property: The object representing the policy for taking backups on an account.

List<Capability> capabilities()

Get the capabilities property: List of Cosmos DB capabilities for the account.

Capacity capacity()

Get the capacity property: The object that represents all properties related to capacity enforcement on an account.

ConnectorOffer connectorOffer()

Get the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.

ConsistencyPolicy consistencyPolicy()

Get the consistencyPolicy property: The consistency policy for the Cosmos DB account.

List<CorsPolicy> cors()

Get the cors property: The CORS policy for the Cosmos DB database account.

String customerManagedKeyStatus()

Get the customerManagedKeyStatus property: Indicates the status of the Customer Managed Key feature on the account.

String defaultIdentity()

Get the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys.

DefaultPriorityLevel defaultPriorityLevel()

Get the defaultPriorityLevel property: Enum to indicate default Priority Level of request for Priority Based Execution.

Boolean disableKeyBasedMetadataWriteAccess()

Get the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.

Boolean disableLocalAuth()

Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

Boolean enableAnalyticalStorage()

Get the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.

Boolean enableAutomaticFailover()

Get the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage.

Boolean enableBurstCapacity()

Get the enableBurstCapacity property: Flag to indicate enabling/disabling of Burst Capacity feature on the account.

Boolean enableCassandraConnector()

Get the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.

Boolean enableFreeTier()

Get the enableFreeTier property: Flag to indicate whether Free Tier is enabled.

Boolean enableMultipleWriteLocations()

Get the enableMultipleWriteLocations property: Enables the account to write in multiple locations.

Boolean enablePartitionMerge()

Get the enablePartitionMerge property: Flag to indicate enabling/disabling of Partition Merge feature on the account.

Boolean enablePerRegionPerPartitionAutoscale()

Get the enablePerRegionPerPartitionAutoscale property: Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account.

Boolean enablePriorityBasedExecution()

Get the enablePriorityBasedExecution property: Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account.

static DatabaseAccountUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountUpdateProperties from the JsonReader.

List<IpAddressOrRange> ipRules()

Get the ipRules property: List of IpRules.

Boolean isVirtualNetworkFilterEnabled()

Get the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.

DatabaseAccountKeysMetadata keysMetadata()

Get the keysMetadata property: This property is ignored during the update operation, as the metadata is read-only.

String keyVaultKeyUri()

Get the keyVaultKeyUri property: The URI of the key vault.

List<Location> locations()

Get the locations property: An array that contains the georeplication locations enabled for the Cosmos DB account.

MinimalTlsVersion minimalTlsVersion()

Get the minimalTlsVersion property: Indicates the minimum allowed Tls version.

NetworkAclBypass networkAclBypass()

Get the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.

List<String> networkAclBypassResourceIds()

Get the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether requests from Public Network are allowed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VirtualNetworkRule> virtualNetworkRules()

Get the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.

DatabaseAccountUpdateProperties withAnalyticalStorageConfiguration(AnalyticalStorageConfiguration analyticalStorageConfiguration)

Set the analyticalStorageConfiguration property: Analytical storage specific properties.

DatabaseAccountUpdateProperties withApiProperties(ApiProperties apiProperties)

Set the apiProperties property: API specific properties.

DatabaseAccountUpdateProperties withBackupPolicy(BackupPolicy backupPolicy)

Set the backupPolicy property: The object representing the policy for taking backups on an account.

DatabaseAccountUpdateProperties withCapabilities(List<Capability> capabilities)

Set the capabilities property: List of Cosmos DB capabilities for the account.

DatabaseAccountUpdateProperties withCapacity(Capacity capacity)

Set the capacity property: The object that represents all properties related to capacity enforcement on an account.

DatabaseAccountUpdateProperties withConnectorOffer(ConnectorOffer connectorOffer)

Set the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.

DatabaseAccountUpdateProperties withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)

Set the consistencyPolicy property: The consistency policy for the Cosmos DB account.

DatabaseAccountUpdateProperties withCors(List<CorsPolicy> cors)

Set the cors property: The CORS policy for the Cosmos DB database account.

DatabaseAccountUpdateProperties withCustomerManagedKeyStatus(String customerManagedKeyStatus)

Set the customerManagedKeyStatus property: Indicates the status of the Customer Managed Key feature on the account.

DatabaseAccountUpdateProperties withDefaultIdentity(String defaultIdentity)

Set the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys.

DatabaseAccountUpdateProperties withDefaultPriorityLevel(DefaultPriorityLevel defaultPriorityLevel)

Set the defaultPriorityLevel property: Enum to indicate default Priority Level of request for Priority Based Execution.

DatabaseAccountUpdateProperties withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess)

Set the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.

DatabaseAccountUpdateProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

DatabaseAccountUpdateProperties withEnableAnalyticalStorage(Boolean enableAnalyticalStorage)

Set the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.

DatabaseAccountUpdateProperties withEnableAutomaticFailover(Boolean enableAutomaticFailover)

Set the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage.

DatabaseAccountUpdateProperties withEnableBurstCapacity(Boolean enableBurstCapacity)

Set the enableBurstCapacity property: Flag to indicate enabling/disabling of Burst Capacity feature on the account.

DatabaseAccountUpdateProperties withEnableCassandraConnector(Boolean enableCassandraConnector)

Set the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.

DatabaseAccountUpdateProperties withEnableFreeTier(Boolean enableFreeTier)

Set the enableFreeTier property: Flag to indicate whether Free Tier is enabled.

DatabaseAccountUpdateProperties withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)

Set the enableMultipleWriteLocations property: Enables the account to write in multiple locations.

DatabaseAccountUpdateProperties withEnablePartitionMerge(Boolean enablePartitionMerge)

Set the enablePartitionMerge property: Flag to indicate enabling/disabling of Partition Merge feature on the account.

DatabaseAccountUpdateProperties withEnablePerRegionPerPartitionAutoscale(Boolean enablePerRegionPerPartitionAutoscale)

Set the enablePerRegionPerPartitionAutoscale property: Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account.

DatabaseAccountUpdateProperties withEnablePriorityBasedExecution(Boolean enablePriorityBasedExecution)

Set the enablePriorityBasedExecution property: Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account.

DatabaseAccountUpdateProperties withIpRules(List<IpAddressOrRange> ipRules)

Set the ipRules property: List of IpRules.

DatabaseAccountUpdateProperties withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled)

Set the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.

DatabaseAccountUpdateProperties withKeyVaultKeyUri(String keyVaultKeyUri)

Set the keyVaultKeyUri property: The URI of the key vault.

DatabaseAccountUpdateProperties withLocations(List<Location> locations)

Set the locations property: An array that contains the georeplication locations enabled for the Cosmos DB account.

DatabaseAccountUpdateProperties withMinimalTlsVersion(MinimalTlsVersion minimalTlsVersion)

Set the minimalTlsVersion property: Indicates the minimum allowed Tls version.

DatabaseAccountUpdateProperties withNetworkAclBypass(NetworkAclBypass networkAclBypass)

Set the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.

DatabaseAccountUpdateProperties withNetworkAclBypassResourceIds(List<String> networkAclBypassResourceIds)

Set the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

DatabaseAccountUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether requests from Public Network are allowed.

DatabaseAccountUpdateProperties withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)

Set the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.

Methods inherited from java.lang.Object

Constructor Details

DatabaseAccountUpdateProperties

public DatabaseAccountUpdateProperties()

Creates an instance of DatabaseAccountUpdateProperties class.

Method Details

analyticalStorageConfiguration

public AnalyticalStorageConfiguration analyticalStorageConfiguration()

Get the analyticalStorageConfiguration property: Analytical storage specific properties.

Returns:

the analyticalStorageConfiguration value.

apiProperties

public ApiProperties apiProperties()

Get the apiProperties property: API specific properties. Currently, supported only for MongoDB API.

Returns:

the apiProperties value.

backupPolicy

public BackupPolicy backupPolicy()

Get the backupPolicy property: The object representing the policy for taking backups on an account.

Returns:

the backupPolicy value.

capabilities

public List<Capability> capabilities()

Get the capabilities property: List of Cosmos DB capabilities for the account.

Returns:

the capabilities value.

capacity

public Capacity capacity()

Get the capacity property: The object that represents all properties related to capacity enforcement on an account.

Returns:

the capacity value.

connectorOffer

public ConnectorOffer connectorOffer()

Get the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.

Returns:

the connectorOffer value.

consistencyPolicy

public ConsistencyPolicy consistencyPolicy()

Get the consistencyPolicy property: The consistency policy for the Cosmos DB account.

Returns:

the consistencyPolicy value.

cors

public List<CorsPolicy> cors()

Get the cors property: The CORS policy for the Cosmos DB database account.

Returns:

the cors value.

customerManagedKeyStatus

public String customerManagedKeyStatus()

Get the customerManagedKeyStatus property: Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance.

Returns:

the customerManagedKeyStatus value.

defaultIdentity

public String defaultIdentity()

Get the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.

Returns:

the defaultIdentity value.

defaultPriorityLevel

public DefaultPriorityLevel defaultPriorityLevel()

Get the defaultPriorityLevel property: Enum to indicate default Priority Level of request for Priority Based Execution.

Returns:

the defaultPriorityLevel value.

disableKeyBasedMetadataWriteAccess

public Boolean disableKeyBasedMetadataWriteAccess()

Get the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.

Returns:

the disableKeyBasedMetadataWriteAccess value.

disableLocalAuth

public Boolean disableLocalAuth()

Get the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

Returns:

the disableLocalAuth value.

enableAnalyticalStorage

public Boolean enableAnalyticalStorage()

Get the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.

Returns:

the enableAnalyticalStorage value.

enableAutomaticFailover

public Boolean enableAutomaticFailover()

Get the enableAutomaticFailover property: 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.

enableBurstCapacity

public Boolean enableBurstCapacity()

Get the enableBurstCapacity property: Flag to indicate enabling/disabling of Burst Capacity feature on the account.

Returns:

the enableBurstCapacity value.

enableCassandraConnector

public Boolean enableCassandraConnector()

Get the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.

Returns:

the enableCassandraConnector value.

enableFreeTier

public Boolean enableFreeTier()

Get the enableFreeTier property: Flag to indicate whether Free Tier is enabled.

Returns:

the enableFreeTier value.

enableMultipleWriteLocations

public Boolean enableMultipleWriteLocations()

Get the enableMultipleWriteLocations property: Enables the account to write in multiple locations.

Returns:

the enableMultipleWriteLocations value.

enablePartitionMerge

public Boolean enablePartitionMerge()

Get the enablePartitionMerge property: Flag to indicate enabling/disabling of Partition Merge feature on the account.

Returns:

the enablePartitionMerge value.

enablePerRegionPerPartitionAutoscale

public Boolean enablePerRegionPerPartitionAutoscale()

Get the enablePerRegionPerPartitionAutoscale property: Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account.

Returns:

the enablePerRegionPerPartitionAutoscale value.

enablePriorityBasedExecution

public Boolean enablePriorityBasedExecution()

Get the enablePriorityBasedExecution property: Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account.

Returns:

the enablePriorityBasedExecution value.

fromJson

public static DatabaseAccountUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatabaseAccountUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DatabaseAccountUpdateProperties.

ipRules

public List<IpAddressOrRange> ipRules()

Get the ipRules property: List of IpRules.

Returns:

the ipRules value.

isVirtualNetworkFilterEnabled

public Boolean isVirtualNetworkFilterEnabled()

Get the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.

Returns:

the isVirtualNetworkFilterEnabled value.

keysMetadata

public DatabaseAccountKeysMetadata keysMetadata()

Get the keysMetadata property: This property is ignored during the update operation, as the metadata is read-only. The object represents the metadata for the Account Keys of the Cosmos DB account.

Returns:

the keysMetadata value.

keyVaultKeyUri

public String keyVaultKeyUri()

Get the keyVaultKeyUri property: The URI of the key vault.

Returns:

the keyVaultKeyUri value.

locations

public List<Location> locations()

Get the locations property: An array that contains the georeplication locations enabled for the Cosmos DB account.

Returns:

the locations value.

minimalTlsVersion

public MinimalTlsVersion minimalTlsVersion()

Get the minimalTlsVersion property: Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only work with Tls 1.2.

Returns:

the minimalTlsVersion value.

networkAclBypass

public NetworkAclBypass networkAclBypass()

Get the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.

Returns:

the networkAclBypass value.

networkAclBypassResourceIds

public List<String> networkAclBypassResourceIds()

Get the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

Returns:

the networkAclBypassResourceIds value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether requests from Public Network are allowed.

Returns:

the publicNetworkAccess value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkRules

public List<VirtualNetworkRule> virtualNetworkRules()

Get the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.

Returns:

the virtualNetworkRules value.

withAnalyticalStorageConfiguration

public DatabaseAccountUpdateProperties withAnalyticalStorageConfiguration(AnalyticalStorageConfiguration analyticalStorageConfiguration)

Set the analyticalStorageConfiguration property: Analytical storage specific properties.

Parameters:

analyticalStorageConfiguration - the analyticalStorageConfiguration value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withApiProperties

public DatabaseAccountUpdateProperties withApiProperties(ApiProperties apiProperties)

Set the apiProperties property: API specific properties. Currently, supported only for MongoDB API.

Parameters:

apiProperties - the apiProperties value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withBackupPolicy

public DatabaseAccountUpdateProperties withBackupPolicy(BackupPolicy backupPolicy)

Set the backupPolicy property: The object representing the policy for taking backups on an account.

Parameters:

backupPolicy - the backupPolicy value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withCapabilities

public DatabaseAccountUpdateProperties withCapabilities(List<Capability> capabilities)

Set the capabilities property: List of Cosmos DB capabilities for the account.

Parameters:

capabilities - the capabilities value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withCapacity

public DatabaseAccountUpdateProperties withCapacity(Capacity capacity)

Set the capacity property: The object that represents all properties related to capacity enforcement on an account.

Parameters:

capacity - the capacity value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withConnectorOffer

public DatabaseAccountUpdateProperties withConnectorOffer(ConnectorOffer connectorOffer)

Set the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.

Parameters:

connectorOffer - the connectorOffer value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withConsistencyPolicy

public DatabaseAccountUpdateProperties withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)

Set the consistencyPolicy property: The consistency policy for the Cosmos DB account.

Parameters:

consistencyPolicy - the consistencyPolicy value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withCors

public DatabaseAccountUpdateProperties withCors(List<CorsPolicy> cors)

Set the cors property: The CORS policy for the Cosmos DB database account.

Parameters:

cors - the cors value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withCustomerManagedKeyStatus

public DatabaseAccountUpdateProperties withCustomerManagedKeyStatus(String customerManagedKeyStatus)

Set the customerManagedKeyStatus property: Indicates the status of the Customer Managed Key feature on the account. In case there are errors, the property provides troubleshooting guidance.

Parameters:

customerManagedKeyStatus - the customerManagedKeyStatus value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withDefaultIdentity

public DatabaseAccountUpdateProperties withDefaultIdentity(String defaultIdentity)

Set the defaultIdentity property: The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.

Parameters:

defaultIdentity - the defaultIdentity value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withDefaultPriorityLevel

public DatabaseAccountUpdateProperties withDefaultPriorityLevel(DefaultPriorityLevel defaultPriorityLevel)

Set the defaultPriorityLevel property: Enum to indicate default Priority Level of request for Priority Based Execution.

Parameters:

defaultPriorityLevel - the defaultPriorityLevel value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withDisableKeyBasedMetadataWriteAccess

public DatabaseAccountUpdateProperties withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess)

Set the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases, containers, throughput) via account keys.

Parameters:

disableKeyBasedMetadataWriteAccess - the disableKeyBasedMetadataWriteAccess value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withDisableLocalAuth

public DatabaseAccountUpdateProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnableAnalyticalStorage

public DatabaseAccountUpdateProperties withEnableAnalyticalStorage(Boolean enableAnalyticalStorage)

Set the enableAnalyticalStorage property: Flag to indicate whether to enable storage analytics.

Parameters:

enableAnalyticalStorage - the enableAnalyticalStorage value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnableAutomaticFailover

public DatabaseAccountUpdateProperties withEnableAutomaticFailover(Boolean enableAutomaticFailover)

Set the enableAutomaticFailover property: 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 DatabaseAccountUpdateProperties object itself.

withEnableBurstCapacity

public DatabaseAccountUpdateProperties withEnableBurstCapacity(Boolean enableBurstCapacity)

Set the enableBurstCapacity property: Flag to indicate enabling/disabling of Burst Capacity feature on the account.

Parameters:

enableBurstCapacity - the enableBurstCapacity value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnableCassandraConnector

public DatabaseAccountUpdateProperties withEnableCassandraConnector(Boolean enableCassandraConnector)

Set the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.

Parameters:

enableCassandraConnector - the enableCassandraConnector value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnableFreeTier

public DatabaseAccountUpdateProperties withEnableFreeTier(Boolean enableFreeTier)

Set the enableFreeTier property: Flag to indicate whether Free Tier is enabled.

Parameters:

enableFreeTier - the enableFreeTier value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnableMultipleWriteLocations

public DatabaseAccountUpdateProperties withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)

Set the enableMultipleWriteLocations property: Enables the account to write in multiple locations.

Parameters:

enableMultipleWriteLocations - the enableMultipleWriteLocations value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnablePartitionMerge

public DatabaseAccountUpdateProperties withEnablePartitionMerge(Boolean enablePartitionMerge)

Set the enablePartitionMerge property: Flag to indicate enabling/disabling of Partition Merge feature on the account.

Parameters:

enablePartitionMerge - the enablePartitionMerge value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnablePerRegionPerPartitionAutoscale

public DatabaseAccountUpdateProperties withEnablePerRegionPerPartitionAutoscale(Boolean enablePerRegionPerPartitionAutoscale)

Set the enablePerRegionPerPartitionAutoscale property: Flag to indicate enabling/disabling of PerRegionPerPartitionAutoscale feature on the account.

Parameters:

enablePerRegionPerPartitionAutoscale - the enablePerRegionPerPartitionAutoscale value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withEnablePriorityBasedExecution

public DatabaseAccountUpdateProperties withEnablePriorityBasedExecution(Boolean enablePriorityBasedExecution)

Set the enablePriorityBasedExecution property: Flag to indicate enabling/disabling of Priority Based Execution Preview feature on the account.

Parameters:

enablePriorityBasedExecution - the enablePriorityBasedExecution value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withIpRules

public DatabaseAccountUpdateProperties withIpRules(List<IpAddressOrRange> ipRules)

Set the ipRules property: List of IpRules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withIsVirtualNetworkFilterEnabled

public DatabaseAccountUpdateProperties withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled)

Set the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL rules.

Parameters:

isVirtualNetworkFilterEnabled - the isVirtualNetworkFilterEnabled value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withKeyVaultKeyUri

public DatabaseAccountUpdateProperties withKeyVaultKeyUri(String keyVaultKeyUri)

Set the keyVaultKeyUri property: The URI of the key vault.

Parameters:

keyVaultKeyUri - the keyVaultKeyUri value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withLocations

public DatabaseAccountUpdateProperties withLocations(List<Location> locations)

Set the locations property: An array that contains the georeplication locations enabled for the Cosmos DB account.

Parameters:

locations - the locations value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withMinimalTlsVersion

public DatabaseAccountUpdateProperties withMinimalTlsVersion(MinimalTlsVersion minimalTlsVersion)

Set the minimalTlsVersion property: Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only work with Tls 1.2.

Parameters:

minimalTlsVersion - the minimalTlsVersion value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withNetworkAclBypass

public DatabaseAccountUpdateProperties withNetworkAclBypass(NetworkAclBypass networkAclBypass)

Set the networkAclBypass property: Indicates what services are allowed to bypass firewall checks.

Parameters:

networkAclBypass - the networkAclBypass value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withNetworkAclBypassResourceIds

public DatabaseAccountUpdateProperties withNetworkAclBypassResourceIds(List<String> networkAclBypassResourceIds)

Set the networkAclBypassResourceIds property: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.

Parameters:

networkAclBypassResourceIds - the networkAclBypassResourceIds value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withPublicNetworkAccess

public DatabaseAccountUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether requests from Public Network are allowed.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

withVirtualNetworkRules

public DatabaseAccountUpdateProperties withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)

Set the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.

Parameters:

virtualNetworkRules - the virtualNetworkRules value to set.

Returns:

the DatabaseAccountUpdateProperties object itself.

Applies to