Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.cosmosdb; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.cosmosdb.implementation.CosmosDBManager; import com.microsoft.azure.management.cosmosdb.implementation.DatabaseAccountGetResultsInner; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource; import com.microsoft.azure.management.resources.fluentcore.model.Appliable; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; import com.microsoft.azure.management.resources.fluentcore.model.Updatable; import rx.Completable; import rx.Observable; import java.util.List; import java.util.Map;
An immutable client-side representation of an Azure Cosmos DB.
/** * An immutable client-side representation of an Azure Cosmos DB. */
@Fluent @Beta(SinceVersion.V1_2_0) public interface CosmosDBAccount extends GroupableResource<CosmosDBManager, DatabaseAccountGetResultsInner>, Refreshable<CosmosDBAccount>, Updatable<CosmosDBAccount.Update> {
Returns:indicates the type of database account
/** * @return indicates the type of database account */
DatabaseAccountKind kind();
Returns:the connection endpoint for the CosmosDB database account
/** * @return the connection endpoint for the CosmosDB database account */
String documentEndpoint();
Returns:the offer type for the CosmosDB database account
/** * @return the offer type for the CosmosDB database account */
DatabaseAccountOfferType databaseAccountOfferType();
Returns:specifies the set of IP addresses or IP address ranges in CIDR form.
/** * @return specifies the set of IP addresses or IP address ranges in CIDR form. */
String ipRangeFilter();
Returns:the consistency policy for the CosmosDB database account
/** * @return the consistency policy for the CosmosDB database account */
ConsistencyPolicy consistencyPolicy();
Returns:the default consistency level for the CosmosDB database account
/** * @return the default consistency level for the CosmosDB database account */
DefaultConsistencyLevel defaultConsistencyLevel();
Returns:an array that contains the writable georeplication locations enabled for the CosmosDB account
/** * @return an array that contains the writable georeplication locations enabled for the CosmosDB account */
List<Location> writableReplications();
Returns:an array that contains the readable georeplication locations enabled for the CosmosDB account
/** * @return an array that contains the readable georeplication locations enabled for the CosmosDB account */
List<Location> readableReplications();
Returns:the access keys for the specified Azure CosmosDB database account
/** * @return the access keys for the specified Azure CosmosDB database account */
DatabaseAccountListKeysResult listKeys();
Returns:the access keys for the specified Azure CosmosDB database account
/** * @return the access keys for the specified Azure CosmosDB database account */
Observable<DatabaseAccountListKeysResult> listKeysAsync();
Returns:the read-only access keys for the specified Azure CosmosDB database account
/** * @return the read-only access keys for the specified Azure CosmosDB database account */
DatabaseAccountListReadOnlyKeysResult listReadOnlyKeys();
Returns:the read-only access keys for the specified Azure CosmosDB database account
/** * @return the read-only access keys for the specified Azure CosmosDB database account */
Observable<DatabaseAccountListReadOnlyKeysResult> listReadOnlyKeysAsync();
Returns:the connection strings for the specified Azure CosmosDB database account
/** * @return the connection strings for the specified Azure CosmosDB database account */
DatabaseAccountListConnectionStringsResult listConnectionStrings();
Returns:the connection strings for the specified Azure CosmosDB database account
/** * @return the connection strings for the specified Azure CosmosDB database account */
Observable<DatabaseAccountListConnectionStringsResult> listConnectionStringsAsync();
Returns:the list of Azure Cosmos DB SQL databases
/** * @return the list of Azure Cosmos DB SQL databases */
List<SqlDatabase> listSqlDatabases();
Returns:the list of Azure Cosmos DB SQL databases
/** * @return the list of Azure Cosmos DB SQL databases */
Observable<List<SqlDatabase>> listSqlDatabasesAsync();
Returns:whether write is enabled for multiple locations or not
/** * @return whether write is enabled for multiple locations or not */
boolean multipleWriteLocationsEnabled();
Returns:whether cassandra connector is enabled or not.
/** * @return whether cassandra connector is enabled or not. */
boolean cassandraConnectorEnabled();
Returns:the current cassandra connector offer.
/** * @return the current cassandra connector offer. */
ConnectorOffer cassandraConnectorOffer();
Returns:whether metadata write access is disabled or not.
/** * @return whether metadata write access is disabled or not. */
boolean keyBasedMetadataWriteAccessDisabled();
Returns:all private link resources in the account.
/** * @return all private link resources in the account. */
Observable<List<PrivateLinkResource>> listPrivateLinkResourcesAsync();
Returns:all private link resources in the account.
/** * @return all private link resources in the account. */
List<PrivateLinkResource> listPrivateLinkResources();
Params:
  • groupName – group name of private link resource
Returns:the specific private link resource group
/** * @param groupName group name of private link resource * @return the specific private link resource group */
Observable<PrivateLinkResource> getPrivateLinkResourceAsync(String groupName);
Params:
  • groupName – group name of private link resource
Returns:the specific private link resource group
/** * @param groupName group name of private link resource * @return the specific private link resource group */
PrivateLinkResource getPrivateLinkResource(String groupName);
Returns:all private endpoint connection in the account.
/** * @return all private endpoint connection in the account. */
Observable<Map<String, PrivateEndpointConnection>> listPrivateEndpointConnectionAsync();
Returns:all private endpoint connection in the account.
/** * @return all private endpoint connection in the account. */
Map<String, PrivateEndpointConnection> listPrivateEndpointConnection();
Params:
  • name – name of private endpoint connection
Returns:the specific private endpoint connection
/** * @param name name of private endpoint connection * @return the specific private endpoint connection */
Observable<PrivateEndpointConnection> getPrivateEndpointConnectionAsync(String name);
Params:
  • name – name of private endpoint connection
Returns:the specific private endpoint connection
/** * @param name name of private endpoint connection * @return the specific private endpoint connection */
PrivateEndpointConnection getPrivateEndpointConnection(String name);
Returns:a list that contains the Cosmos DB capabilities
/** * @return a list that contains the Cosmos DB capabilities */
@Beta(SinceVersion.V1_10_0) List<Capability> capabilities();
Returns:a list that contains the Cosmos DB Virtual Network ACL Rules (empty list if none is set)
/** * @return a list that contains the Cosmos DB Virtual Network ACL Rules (empty list if none is set) */
@Beta(SinceVersion.V1_10_0) List<VirtualNetworkRule> virtualNetworkRules();
It takes offline the specified region for the current Azure Cosmos DB database account.
Params:
  • region – Cosmos DB region
/** * It takes offline the specified region for the current Azure Cosmos DB database account. * * @param region Cosmos DB region */
@Beta(SinceVersion.V1_11_0) void offlineRegion(Region region);
Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account.
Params:
  • region – Cosmos DB region
Returns:a representation of the deferred computation of this call
/** * Asynchronously it takes offline the specified region for the current Azure Cosmos DB database account. * * @param region Cosmos DB region * @return a representation of the deferred computation of this call */
@Beta(SinceVersion.V1_11_0) Completable offlineRegionAsync(Region region);
It brings online the specified region for the current Azure Cosmos DB database account.
Params:
  • region – Cosmos DB region
/** * It brings online the specified region for the current Azure Cosmos DB database account. * * @param region Cosmos DB region */
@Beta(SinceVersion.V1_11_0) void onlineRegion(Region region);
Asynchronously it brings online the specified region for the current Azure Cosmos DB database account.
Params:
  • region – Cosmos DB region
Returns:a representation of the deferred computation of this call
/** * Asynchronously it brings online the specified region for the current Azure Cosmos DB database account. * * @param region Cosmos DB region * @return a representation of the deferred computation of this call */
@Beta(SinceVersion.V1_11_0) Completable onlineRegionAsync(Region region);
Params:
  • keyKind – the key kind
/** * @param keyKind the key kind */
void regenerateKey(KeyKind keyKind);
Params:
  • keyKind – the key kind
Returns:a representation of the deferred computation of this call
/** * @param keyKind the key kind * @return a representation of the deferred computation of this call */
@Beta(SinceVersion.V1_11_0) Completable regenerateKeyAsync(KeyKind keyKind);
Grouping of cosmos db definition stages.
/** * Grouping of cosmos db definition stages. */
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithKind, DefinitionStages.WithWriteReplication, DefinitionStages.WithReadReplication, DefinitionStages.WithCreate { }
Grouping of cosmos db definition stages.
/** * Grouping of cosmos db definition stages. */
interface DefinitionStages {
The first stage of a cosmos db definition.
/** * The first stage of a cosmos db definition. */
interface Blank extends DefinitionWithRegion<WithGroup> { }
The stage of the cosmos db definition allowing to specify the resource group.
/** * The stage of the cosmos db definition allowing to specify the resource group. */
interface WithGroup extends GroupableResource.DefinitionStages.WithGroup<WithKind> { }
The stage of the cosmos db definition allowing to set the database account kind.
/** * The stage of the cosmos db definition allowing to set the database account kind. */
interface WithKind {
The database account kind for the CosmosDB account.
Params:
  • kind – the account kind
Returns:the next stage of the definition
/** * The database account kind for the CosmosDB account. * * @param kind the account kind * @return the next stage of the definition */
WithConsistencyPolicy withKind(DatabaseAccountKind kind);
The database account kind for the CosmosDB account.
Params:
  • kind – the account kind
  • capabilities – the list of Cosmos DB capabilities for the account
Returns:the next stage of the definition
/** * The database account kind for the CosmosDB account. * * @param kind the account kind * @param capabilities the list of Cosmos DB capabilities for the account * @return the next stage of the definition */
@Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withKind(DatabaseAccountKind kind, Capability... capabilities);
Creates a SQL CosmosDB account.
Returns:the next stage of the definition
/** * Creates a SQL CosmosDB account. * * @return the next stage of the definition */
@Method @Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withDataModelSql();
Creates a MongoDB CosmosDB account.
Returns:the next stage of the definition
/** * Creates a MongoDB CosmosDB account. * * @return the next stage of the definition */
@Method @Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withDataModelMongoDB();
Creates a Cassandra CosmosDB account.
Returns:the next stage of the definition
/** * Creates a Cassandra CosmosDB account. * * @return the next stage of the definition */
@Method @Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withDataModelCassandra();
Creates an Azure Table CosmosDB account.
Returns:the next stage of the definition
/** * Creates an Azure Table CosmosDB account. * * @return the next stage of the definition */
@Method @Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withDataModelAzureTable();
Creates a Gremlin CosmosDB account.
Returns:the next stage of the definition
/** * Creates a Gremlin CosmosDB account. * * @return the next stage of the definition */
@Method @Beta(SinceVersion.V1_10_0) WithConsistencyPolicy withDataModelGremlin(); }
The stage of the cosmos db definition allowing to set the consistency policy.
/** * The stage of the cosmos db definition allowing to set the consistency policy. */
interface WithConsistencyPolicy {
The eventual consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The eventual consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithWriteReplication withEventualConsistency();
The session consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The session consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithWriteReplication withSessionConsistency();
The bounded staleness consistency policy for the CosmosDB account.
Params:
  • maxStalenessPrefix – the max staleness prefix
  • maxIntervalInSeconds – the max interval in seconds
Returns:the next stage of the definition
/** * The bounded staleness consistency policy for the CosmosDB account. * @param maxStalenessPrefix the max staleness prefix * @param maxIntervalInSeconds the max interval in seconds * @return the next stage of the definition */
WithWriteReplication withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds);
The strong consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The strong consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithCreate withStrongConsistency(); }
The stage of the cosmos db definition allowing to set the IP range filter.
/** * The stage of the cosmos db definition allowing to set the IP range filter. */
interface WithIpRangeFilter {
CosmosDB 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.
Params:
  • ipRangeFilter – specifies the set of IP addresses or IP address ranges
Returns:the next stage of the definition
/** * CosmosDB 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. * @param ipRangeFilter specifies the set of IP addresses or IP address ranges * @return the next stage of the definition */
WithCreate withIpRangeFilter(String ipRangeFilter); }
The stage of the cosmos db definition allowing the definition of a read location.
/** * The stage of the cosmos db definition allowing the definition of a read location. */
interface WithWriteReplication {
A georeplication location for the CosmosDB account.
Params:
  • region – the region for the location
Returns:the next stage
/** * A georeplication location for the CosmosDB account. * @param region the region for the location * @return the next stage */
WithCreate withWriteReplication(Region region); }
The stage of the cosmos db definition allowing the definition of a write location.
/** * The stage of the cosmos db definition allowing the definition of a write location. */
interface WithReadReplication {
A georeplication location for the CosmosDB account.
Params:
  • region – the region for the location
Returns:the next stage
/** * A georeplication location for the CosmosDB account. * @param region the region for the location * @return the next stage */
WithCreate withReadReplication(Region region); }
The stage of the cosmos db definition allowing the definition of a Virtual Network ACL Rule.
/** * The stage of the cosmos db definition allowing the definition of a Virtual Network ACL Rule. */
@Beta(SinceVersion.V1_11_0) interface WithVirtualNetworkRule {
Specifies a Virtual Network ACL Rule for the CosmosDB account.
Params:
  • virtualNetworkId – the ID of a virtual network
  • subnetName – the name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.
Returns:the next stage
/** * Specifies a Virtual Network ACL Rule for the CosmosDB account. * * @param virtualNetworkId the ID of a virtual network * @param subnetName the name of the subnet within the virtual network; the subnet must have the service * endpoints enabled for 'Microsoft.AzureCosmosDB'. * @return the next stage */
@Beta(SinceVersion.V1_11_0) WithCreate withVirtualNetwork(String virtualNetworkId, String subnetName);
Specifies the list of Virtual Network ACL Rules for the CosmosDB account.
Params:
  • virtualNetworkRules – the list of Virtual Network ACL Rules.
Returns:the next stage
/** * Specifies the list of Virtual Network ACL Rules for the CosmosDB account. * * @param virtualNetworkRules the list of Virtual Network ACL Rules. * @return the next stage */
@Beta(SinceVersion.V1_11_0) WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules); }
The stage of the cosmos db definition allowing to specify whether multiple write locations will be enabled.
/** * The stage of the cosmos db definition allowing to specify whether multiple write locations will be enabled. */
interface WithMultipleLocations {
Specifies whether multiple write locations are enabled for this cosmos db account.
Params:
  • enabled – whether multiple write locations are enabled or not.
Returns:the next stage
/** * Specifies whether multiple write locations are enabled for this cosmos db account. * * @param enabled whether multiple write locations are enabled or not. * @return the next stage */
WithCreate withMultipleWriteLocationsEnabled(boolean enabled); }
The stage of the cosmos db definition allowing to specify cassandra connector offer.
/** * The stage of the cosmos db definition allowing to specify cassandra connector offer. */
interface WithConnector {
Specifies a connector offer for cassandra connector.
Params:
  • connectorOffer – connector offer to specify.
Returns:the next stage
/** * Specifies a connector offer for cassandra connector. * @param connectorOffer connector offer to specify. * @return the next stage */
WithCreate withCassandraConnector(ConnectorOffer connectorOffer); }
The stage of the cosmos db definition allowing to specify metadata write access.
/** * The stage of the cosmos db definition allowing to specify metadata write access. */
interface WithKeyBasedMetadataWriteAccess {
Specifies whether metadata write access should be disabled.
Params:
  • disabled – whether metadata write access is disabled or not.
Returns:the next stage
/** * Specifies whether metadata write access should be disabled. * @param disabled whether metadata write access is disabled or not. * @return the next stage */
WithCreate withDisableKeyBaseMetadataWriteAccess(boolean disabled); }
The stage of the cosmos db definition allowing to specify private endpoint connection.
/** * The stage of the cosmos db definition allowing to specify private endpoint connection. */
interface WithPrivateEndpointConnection {
Starts the definition of a private endpoint connection to be attached to the cosmos db account.
Params:
  • name – the reference name for the private endpoint connection
Returns:the first stage of a private endpoint connection definition
/** * Starts the definition of a private endpoint connection to be attached * to the cosmos db account. * * @param name the reference name for the private endpoint connection * @return the first stage of a private endpoint connection definition */
PrivateEndpointConnection.DefinitionStages.Blank<WithCreate> defineNewPrivateEndpointConnection(String name); }
The stage of the definition which contains all the minimum required inputs for the resource to be created, but also allows for any other optional settings to be specified.
/** * The stage of the definition which contains all the minimum required inputs for * the resource to be created, but also allows * for any other optional settings to be specified. */
interface WithCreate extends Creatable<CosmosDBAccount>, WithConsistencyPolicy, WithReadReplication, WithIpRangeFilter, WithVirtualNetworkRule, WithMultipleLocations, WithConnector, WithKeyBasedMetadataWriteAccess, WithPrivateEndpointConnection, DefinitionWithTags<WithCreate> { } }
Grouping of cosmos db update stages.
/** * Grouping of cosmos db update stages. */
interface Update extends UpdateStages.WithReadLocations, UpdateStages.WithOptionals { }
Grouping of cosmos db update stages.
/** * Grouping of cosmos db update stages. */
interface UpdateStages {
Grouping of cosmos db update stages.
/** * Grouping of cosmos db update stages. */
interface WithOptionals extends Resource.UpdateWithTags<WithOptionals>, Appliable<CosmosDBAccount>, UpdateStages.WithConsistencyPolicy, UpdateStages.WithVirtualNetworkRule, UpdateStages.WithMultipleLocations, UpdateStages.WithConnector, UpdateStages.WithKeyBasedMetadataWriteAccess, UpdateStages.WithPrivateEndpointConnection, UpdateStages.WithIpRangeFilter { }
The stage of the cosmos db definition allowing the definition of a write location.
/** * The stage of the cosmos db definition allowing the definition of a write location. */
interface WithReadLocations extends Appliable<CosmosDBAccount> {
A georeplication location for the CosmosDB account.
Params:
  • region – the region for the location
Returns:the next stage
/** * A georeplication location for the CosmosDB account. * @param region the region for the location * @return the next stage */
WithReadLocations withReadReplication(Region region);
A georeplication location for the CosmosDB account.
Params:
  • region – the region for the location
Returns:the next stage
/** * A georeplication location for the CosmosDB account. * @param region the region for the location * @return the next stage */
WithReadLocations withoutReadReplication(Region region); }
The stage of the cosmos db update allowing to set the consistency policy.
/** * The stage of the cosmos db update allowing to set the consistency policy. */
interface WithConsistencyPolicy {
The consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithOptionals withEventualConsistency();
The consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithOptionals withSessionConsistency();
The consistency policy for the CosmosDB account.
Params:
  • maxStalenessPrefix – the max staleness prefix
  • maxIntervalInSeconds – the max interval in seconds
Returns:the next stage of the definition
/** * The consistency policy for the CosmosDB account. * @param maxStalenessPrefix the max staleness prefix * @param maxIntervalInSeconds the max interval in seconds * @return the next stage of the definition */
WithOptionals withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds);
The consistency policy for the CosmosDB account.
Returns:the next stage of the definition
/** * The consistency policy for the CosmosDB account. * @return the next stage of the definition */
WithOptionals withStrongConsistency(); }
The stage of the cosmos db definition allowing to set the IP range filter.
/** * The stage of the cosmos db definition allowing to set the IP range filter. */
interface WithIpRangeFilter {
CosmosDB 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.
Params:
  • ipRangeFilter – specifies the set of IP addresses or IP address ranges
Returns:the next stage of the update definition
/** * CosmosDB 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. * @param ipRangeFilter specifies the set of IP addresses or IP address ranges * @return the next stage of the update definition */
WithOptionals withIpRangeFilter(String ipRangeFilter); }
The stage of the Cosmos DB update definition allowing the definition of a Virtual Network ACL Rule.
/** * The stage of the Cosmos DB update definition allowing the definition of a Virtual Network ACL Rule. */
@Beta(SinceVersion.V1_11_0) interface WithVirtualNetworkRule {
Specifies a new Virtual Network ACL Rule for the CosmosDB account.
Params:
  • virtualNetworkId – the ID of a virtual network
  • subnetName – the name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.
Returns:the next stage of the update definition
/** * Specifies a new Virtual Network ACL Rule for the CosmosDB account. * * @param virtualNetworkId the ID of a virtual network * @param subnetName the name of the subnet within the virtual network; the subnet must have the service * endpoints enabled for 'Microsoft.AzureCosmosDB'. * @return the next stage of the update definition */
@Beta(SinceVersion.V1_11_0) WithOptionals withVirtualNetwork(String virtualNetworkId, String subnetName);
Removes a Virtual Network ACL Rule for the CosmosDB account.
Params:
  • virtualNetworkId – the ID of a virtual network
  • subnetName – the name of the subnet within the virtual network; the subnet must have the service endpoints enabled for 'Microsoft.AzureCosmosDB'.
Returns:the next stage of the update definition
/** * Removes a Virtual Network ACL Rule for the CosmosDB account. * * @param virtualNetworkId the ID of a virtual network * @param subnetName the name of the subnet within the virtual network; the subnet must have the service * endpoints enabled for 'Microsoft.AzureCosmosDB'. * @return the next stage of the update definition */
@Beta(SinceVersion.V1_11_0) WithOptionals withoutVirtualNetwork(String virtualNetworkId, String subnetName);
A Virtual Network ACL Rule for the CosmosDB account.
Params:
  • virtualNetworkRules – the list of Virtual Network ACL Rules (an empty list value will remove all the rules)
Returns:the next stage of the update definition-
/** * A Virtual Network ACL Rule for the CosmosDB account. * * @param virtualNetworkRules the list of Virtual Network ACL Rules (an empty list value * will remove all the rules) * @return the next stage of the update definition- */
@Beta(SinceVersion.V1_11_0) WithOptionals withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules); }
The stage of the Cosmos DB update definition allowing to specify whether multiple write locations are enabled or not.
/** * The stage of the Cosmos DB update definition allowing to specify whether multiple write locations are enabled or not. */
interface WithMultipleLocations {
Specifies whether multiple write locations are enabled or not for this cosmos db account.
Params:
  • enabled – whether multiple write locatiosn are enabled or not.
Returns:the next stage of the update definition
/** * Specifies whether multiple write locations are enabled or not for this cosmos db account. * * @param enabled whether multiple write locatiosn are enabled or not. * @return the next stage of the update definition */
WithOptionals withMultipleWriteLocationsEnabled(boolean enabled); }
The stage of the cosmos db update allowing to specify cassandra connector offer.
/** * The stage of the cosmos db update allowing to specify cassandra connector offer. */
interface WithConnector {
Specifies a connector offer for cassandra connector.
Params:
  • connectorOffer – connector offer to specify.
Returns:the next stage
/** * Specifies a connector offer for cassandra connector. * * @param connectorOffer connector offer to specify. * @return the next stage */
WithOptionals withCassandraConnector(ConnectorOffer connectorOffer);
Remove the connector offer.
Returns:the next stage
/** * Remove the connector offer. * * @return the next stage */
WithOptionals withoutCassandraConnector(); }
The stage of the cosmos db update allowing to specify metadata write access.
/** * The stage of the cosmos db update allowing to specify metadata write access. */
interface WithKeyBasedMetadataWriteAccess {
Specifies whether metadata write access should be disabled.
Params:
  • disabled – whether metadata write access is disabled or not.
Returns:the next stage
/** * Specifies whether metadata write access should be disabled. * @param disabled whether metadata write access is disabled or not. * @return the next stage */
WithOptionals withDisableKeyBaseMetadataWriteAccess(boolean disabled); }
The stage of the cosmos db update allowing to specify private endpoint connection.
/** * The stage of the cosmos db update allowing to specify private endpoint connection. */
interface WithPrivateEndpointConnection {
Start the definition of a private endpoint connection to be attached to the cosmos db account.
Params:
  • name – the reference name for the private endpoint connection
Returns:the first stage of a private endpoint connection definition
/** * Start the definition of a private endpoint connection to be attached * to the cosmos db account. * * @param name the reference name for the private endpoint connection * @return the first stage of a private endpoint connection definition */
PrivateEndpointConnection.UpdateDefinitionStages.Blank<WithOptionals> defineNewPrivateEndpointConnection(String name);
Start the update of an existing private endpoint connection.
Params:
  • name – the reference name for the private endpoint connection
Returns:the first stage of a private endpoint connection update
/** * Start the update of an existing private endpoint connection. * * @param name the reference name for the private endpoint connection * @return the first stage of a private endpoint connection update */
PrivateEndpointConnection.Update updatePrivateEndpointConnection(String name);
Remove an existing private endpoint connection.
Params:
  • name – the reference name for the private endpoint connection
Returns:the next stage
/** * Remove an existing private endpoint connection. * * @param name the reference name for the private endpoint connection * @return the next stage */
WithOptionals withoutPrivateEndpointConnection(String name); } } }