DatabaseAccountCreateUpdateProperties Class

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

Implements

public final class DatabaseAccountCreateUpdateProperties
implements JsonSerializable<DatabaseAccountCreateUpdateProperties>

Properties to create and update Azure Cosmos DB database accounts.

Constructor Summary

Constructor Description
DatabaseAccountCreateUpdateProperties()

Creates an instance of DatabaseAccountCreateUpdateProperties 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.

CreateMode createMode()

Get the createMode property: Enum to indicate the mode of account creation.

String customerManagedKeyStatus()

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

String databaseAccountOfferType()

Get the databaseAccountOfferType property: The offer type for the database.

String defaultIdentity()

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

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.

static DatabaseAccountCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountCreateUpdateProperties 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/create 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.

RestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

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.

DatabaseAccountCreateUpdateProperties withAnalyticalStorageConfiguration(AnalyticalStorageConfiguration analyticalStorageConfiguration)

Set the analyticalStorageConfiguration property: Analytical storage specific properties.

DatabaseAccountCreateUpdateProperties withApiProperties(ApiProperties apiProperties)

Set the apiProperties property: API specific properties.

DatabaseAccountCreateUpdateProperties withBackupPolicy(BackupPolicy backupPolicy)

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

DatabaseAccountCreateUpdateProperties withCapabilities(List<Capability> capabilities)

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

DatabaseAccountCreateUpdateProperties withCapacity(Capacity capacity)

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

DatabaseAccountCreateUpdateProperties withConnectorOffer(ConnectorOffer connectorOffer)

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

DatabaseAccountCreateUpdateProperties withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)

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

DatabaseAccountCreateUpdateProperties withCors(List<CorsPolicy> cors)

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

DatabaseAccountCreateUpdateProperties withCreateMode(CreateMode createMode)

Set the createMode property: Enum to indicate the mode of account creation.

DatabaseAccountCreateUpdateProperties withCustomerManagedKeyStatus(String customerManagedKeyStatus)

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

DatabaseAccountCreateUpdateProperties withDefaultIdentity(String defaultIdentity)

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

DatabaseAccountCreateUpdateProperties withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess)

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

DatabaseAccountCreateUpdateProperties withDisableLocalAuth(Boolean disableLocalAuth)

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

DatabaseAccountCreateUpdateProperties withEnableAnalyticalStorage(Boolean enableAnalyticalStorage)

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

DatabaseAccountCreateUpdateProperties 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.

DatabaseAccountCreateUpdateProperties withEnableBurstCapacity(Boolean enableBurstCapacity)

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

DatabaseAccountCreateUpdateProperties withEnableCassandraConnector(Boolean enableCassandraConnector)

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

DatabaseAccountCreateUpdateProperties withEnableFreeTier(Boolean enableFreeTier)

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

DatabaseAccountCreateUpdateProperties withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)

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

DatabaseAccountCreateUpdateProperties withEnablePartitionMerge(Boolean enablePartitionMerge)

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

DatabaseAccountCreateUpdateProperties withEnablePerRegionPerPartitionAutoscale(Boolean enablePerRegionPerPartitionAutoscale)

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

DatabaseAccountCreateUpdateProperties withIpRules(List<IpAddressOrRange> ipRules)

Set the ipRules property: List of IpRules.

DatabaseAccountCreateUpdateProperties withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled)

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

DatabaseAccountCreateUpdateProperties withKeyVaultKeyUri(String keyVaultKeyUri)

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

DatabaseAccountCreateUpdateProperties withLocations(List<Location> locations)

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

DatabaseAccountCreateUpdateProperties withMinimalTlsVersion(MinimalTlsVersion minimalTlsVersion)

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

DatabaseAccountCreateUpdateProperties withNetworkAclBypass(NetworkAclBypass networkAclBypass)

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

DatabaseAccountCreateUpdateProperties withNetworkAclBypassResourceIds(List<String> networkAclBypassResourceIds)

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

DatabaseAccountCreateUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

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

DatabaseAccountCreateUpdateProperties withRestoreParameters(RestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about the restore.

DatabaseAccountCreateUpdateProperties 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

DatabaseAccountCreateUpdateProperties

public DatabaseAccountCreateUpdateProperties()

Creates an instance of DatabaseAccountCreateUpdateProperties 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 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 cors()

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

Returns:

the cors value.

createMode

public CreateMode createMode()

Get the createMode property: Enum to indicate the mode of account creation.

Returns:

the createMode 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.

databaseAccountOfferType

public String databaseAccountOfferType()

Get the databaseAccountOfferType property: The offer type for the database.

Returns:

the databaseAccountOfferType 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.

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.

fromJson

public static DatabaseAccountCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ipRules

public List 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/create 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 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 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.

restoreParameters

public RestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

Returns:

the restoreParameters value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkRules

public List virtualNetworkRules()

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

Returns:

the virtualNetworkRules value.

withAnalyticalStorageConfiguration

public DatabaseAccountCreateUpdateProperties withAnalyticalStorageConfiguration(AnalyticalStorageConfiguration analyticalStorageConfiguration)

Set the analyticalStorageConfiguration property: Analytical storage specific properties.

Parameters:

analyticalStorageConfiguration - the analyticalStorageConfiguration value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withApiProperties

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withBackupPolicy

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withCapabilities

public DatabaseAccountCreateUpdateProperties withCapabilities(List capabilities)

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

Parameters:

capabilities - the capabilities value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withCapacity

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withConnectorOffer

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withConsistencyPolicy

public DatabaseAccountCreateUpdateProperties withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)

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

Parameters:

consistencyPolicy - the consistencyPolicy value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withCors

public DatabaseAccountCreateUpdateProperties withCors(List cors)

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

Parameters:

cors - the cors value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withCreateMode

public DatabaseAccountCreateUpdateProperties withCreateMode(CreateMode createMode)

Set the createMode property: Enum to indicate the mode of account creation.

Parameters:

createMode - the createMode value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withCustomerManagedKeyStatus

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withDefaultIdentity

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withDisableKeyBasedMetadataWriteAccess

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withDisableLocalAuth

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withEnableAnalyticalStorage

public DatabaseAccountCreateUpdateProperties withEnableAnalyticalStorage(Boolean enableAnalyticalStorage)

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

Parameters:

enableAnalyticalStorage - the enableAnalyticalStorage value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withEnableAutomaticFailover

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withEnableBurstCapacity

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withEnableCassandraConnector

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withEnableFreeTier

public DatabaseAccountCreateUpdateProperties withEnableFreeTier(Boolean enableFreeTier)

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

Parameters:

enableFreeTier - the enableFreeTier value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withEnableMultipleWriteLocations

public DatabaseAccountCreateUpdateProperties withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)

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

Parameters:

enableMultipleWriteLocations - the enableMultipleWriteLocations value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withEnablePartitionMerge

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withEnablePerRegionPerPartitionAutoscale

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withIpRules

public DatabaseAccountCreateUpdateProperties withIpRules(List ipRules)

Set the ipRules property: List of IpRules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withIsVirtualNetworkFilterEnabled

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withKeyVaultKeyUri

public DatabaseAccountCreateUpdateProperties withKeyVaultKeyUri(String keyVaultKeyUri)

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

Parameters:

keyVaultKeyUri - the keyVaultKeyUri value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withLocations

public DatabaseAccountCreateUpdateProperties withLocations(List 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 DatabaseAccountCreateUpdateProperties object itself.

withMinimalTlsVersion

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withNetworkAclBypass

public DatabaseAccountCreateUpdateProperties 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 DatabaseAccountCreateUpdateProperties object itself.

withNetworkAclBypassResourceIds

public DatabaseAccountCreateUpdateProperties withNetworkAclBypassResourceIds(List 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 DatabaseAccountCreateUpdateProperties object itself.

withPublicNetworkAccess

public DatabaseAccountCreateUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

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

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withRestoreParameters

public DatabaseAccountCreateUpdateProperties withRestoreParameters(RestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about the restore.

Parameters:

restoreParameters - the restoreParameters value to set.

Returns:

the DatabaseAccountCreateUpdateProperties object itself.

withVirtualNetworkRules

public DatabaseAccountCreateUpdateProperties withVirtualNetworkRules(List 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 DatabaseAccountCreateUpdateProperties object itself.

Applies to

Azure SDK for Java

Latest