MigrateSqlServerSqlDbDatabaseInput Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbDatabaseInput

public final class MigrateSqlServerSqlDbDatabaseInput

Database specific information for SQL to Azure SQL DB migration task inputs.

Constructor Summary

Constructor Description
MigrateSqlServerSqlDbDatabaseInput()

Creates an instance of MigrateSqlServerSqlDbDatabaseInput class.

Method Summary

Modifier and Type Method and Description
Boolean makeSourceDbReadOnly()

Get the makeSourceDbReadOnly property: Whether to set database read only before migration.

String name()

Get the name property: Name of the database.

Map<String,String> tableMap()

Get the tableMap property: Mapping of source to target tables.

String targetDatabaseName()

Get the targetDatabaseName property: Name of target database.

void validate()

Validates the instance.

MigrateSqlServerSqlDbDatabaseInput withMakeSourceDbReadOnly(Boolean makeSourceDbReadOnly)

Set the makeSourceDbReadOnly property: Whether to set database read only before migration.

MigrateSqlServerSqlDbDatabaseInput withName(String name)

Set the name property: Name of the database.

MigrateSqlServerSqlDbDatabaseInput withTableMap(Map<String,String> tableMap)

Set the tableMap property: Mapping of source to target tables.

MigrateSqlServerSqlDbDatabaseInput withTargetDatabaseName(String targetDatabaseName)

Set the targetDatabaseName property: Name of target database.

Methods inherited from java.lang.Object

Constructor Details

MigrateSqlServerSqlDbDatabaseInput

public MigrateSqlServerSqlDbDatabaseInput()

Creates an instance of MigrateSqlServerSqlDbDatabaseInput class.

Method Details

makeSourceDbReadOnly

public Boolean makeSourceDbReadOnly()

Get the makeSourceDbReadOnly property: Whether to set database read only before migration.

Returns:

the makeSourceDbReadOnly value.

name

public String name()

Get the name property: Name of the database.

Returns:

the name value.

tableMap

public Map tableMap()

Get the tableMap property: Mapping of source to target tables.

Returns:

the tableMap value.

targetDatabaseName

public String targetDatabaseName()

Get the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.

Returns:

the targetDatabaseName value.

validate

public void validate()

Validates the instance.

withMakeSourceDbReadOnly

public MigrateSqlServerSqlDbDatabaseInput withMakeSourceDbReadOnly(Boolean makeSourceDbReadOnly)

Set the makeSourceDbReadOnly property: Whether to set database read only before migration.

Parameters:

makeSourceDbReadOnly - the makeSourceDbReadOnly value to set.

Returns:

the MigrateSqlServerSqlDbDatabaseInput object itself.

withName

public MigrateSqlServerSqlDbDatabaseInput withName(String name)

Set the name property: Name of the database.

Parameters:

name - the name value to set.

Returns:

the MigrateSqlServerSqlDbDatabaseInput object itself.

withTableMap

public MigrateSqlServerSqlDbDatabaseInput withTableMap(Map tableMap)

Set the tableMap property: Mapping of source to target tables.

Parameters:

tableMap - the tableMap value to set.

Returns:

the MigrateSqlServerSqlDbDatabaseInput object itself.

withTargetDatabaseName

public MigrateSqlServerSqlDbDatabaseInput withTargetDatabaseName(String targetDatabaseName)

Set the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.

Parameters:

targetDatabaseName - the targetDatabaseName value to set.

Returns:

the MigrateSqlServerSqlDbDatabaseInput object itself.

Applies to