CosmosDBAccount.DefinitionStages.WithKind Interface

public static interface CosmosDBAccount.DefinitionStages.WithKind

The stage of the cosmos db definition allowing to set the database account kind.

Method Summary

Modifier and Type Method and Description
abstract WithConsistencyPolicy withDataModelAzureTable()

Creates an Azure Table CosmosDB account.

abstract WithConsistencyPolicy withDataModelCassandra()

Creates a Cassandra CosmosDB account.

abstract WithConsistencyPolicy withDataModelGremlin()

Creates a Gremlin CosmosDB account.

abstract WithConsistencyPolicy withDataModelMongoDB()

Creates a MongoDB CosmosDB account.

abstract WithConsistencyPolicy withDataModelSql()

Creates a SQL CosmosDB account.

abstract WithConsistencyPolicy withKind(DatabaseAccountKind kind)

The database account kind for the CosmosDB account.

abstract WithConsistencyPolicy withKind(DatabaseAccountKind kind, Capability[] capabilities)

The database account kind for the CosmosDB account.

Method Details

withDataModelAzureTable

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withDataModelAzureTable()

Creates an Azure Table CosmosDB account.

Returns:

the next stage of the definition

withDataModelCassandra

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withDataModelCassandra()

Creates a Cassandra CosmosDB account.

Returns:

the next stage of the definition

withDataModelGremlin

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withDataModelGremlin()

Creates a Gremlin CosmosDB account.

Returns:

the next stage of the definition

withDataModelMongoDB

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withDataModelMongoDB()

Creates a MongoDB CosmosDB account.

Returns:

the next stage of the definition

withDataModelSql

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withDataModelSql()

Creates a SQL CosmosDB account.

Returns:

the next stage of the definition

withKind

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withKind(DatabaseAccountKind kind)

The database account kind for the CosmosDB account.

Parameters:

kind - the account kind

Returns:

the next stage of the definition

withKind

public abstract CosmosDBAccount.DefinitionStages.WithConsistencyPolicy withKind(DatabaseAccountKind kind, Capability[] capabilities)

The database account kind for the CosmosDB account.

Parameters:

kind - the account kind
capabilities - the list of Cosmos DB capabilities for the account

Returns:

the next stage of the definition

Applies to