SqlDatabase.DefinitionStages.WithSourceDatabaseId<ParentT> Interface

Type Parameters

ParentT

the stage of the parent definition to return to after attaching this definition

public interface WithSourceDatabaseId

The SQL Database definition to set the source database id for database.

The SQL Database definition to set the source database id for database.

Method Summary

Modifier and Type Method and Description
SqlDatabase.DefinitionStages.WithCreateMode<ParentT> withSourceDatabase(SqlDatabase sourceDatabase)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

SqlDatabase.DefinitionStages.WithCreateMode<ParentT> withSourceDatabase(String sourceDatabaseId)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

Method Details

withSourceDatabase

public SqlDatabase.DefinitionStages.WithCreateMode withSourceDatabase(SqlDatabase sourceDatabase)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

Parameters:

sourceDatabase - instance of the source database

Returns:

The next stage of the definition.

withSourceDatabase

public SqlDatabase.DefinitionStages.WithCreateMode withSourceDatabase(String sourceDatabaseId)

Sets the resource if of source database for the SQL Database.

Collation, Edition, and MaxSizeBytes must remain the same while the link is active. Values specified for these parameters will be ignored.

Parameters:

sourceDatabaseId - id of the source database

Returns:

The next stage of the definition.

Applies to