Class MigrateSqlServerSqlDbDatabaseInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbDatabaseInput
Database specific information for SQL to Azure SQL DB migration task inputs.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MigrateSqlServerSqlDbDatabaseInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the makeSourceDbReadOnly property: Whether to set database read only before migration.name()
Get the name property: Name of the database.tableMap()
Get the tableMap property: Mapping of source to target tables.Get the targetDatabaseName property: Name of target database.void
validate()
Validates the instance.withMakeSourceDbReadOnly
(Boolean makeSourceDbReadOnly) Set the makeSourceDbReadOnly property: Whether to set database read only before migration.Set the name property: Name of the database.withTableMap
(Map<String, String> tableMap) Set the tableMap property: Mapping of source to target tables.withTargetDatabaseName
(String targetDatabaseName) Set the targetDatabaseName property: Name of target database.
-
Constructor Details
-
MigrateSqlServerSqlDbDatabaseInput
public MigrateSqlServerSqlDbDatabaseInput()Creates an instance of MigrateSqlServerSqlDbDatabaseInput class.
-
-
Method Details
-
name
Get the name property: Name of the database.- Returns:
- the name value.
-
withName
Set the name property: Name of the database.- Parameters:
name
- the name value to set.- Returns:
- the MigrateSqlServerSqlDbDatabaseInput object itself.
-
targetDatabaseName
Get the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.- Returns:
- the targetDatabaseName value.
-
withTargetDatabaseName
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.
-
makeSourceDbReadOnly
Get the makeSourceDbReadOnly property: Whether to set database read only before migration.- Returns:
- the makeSourceDbReadOnly value.
-
withMakeSourceDbReadOnly
Set the makeSourceDbReadOnly property: Whether to set database read only before migration.- Parameters:
makeSourceDbReadOnly
- the makeSourceDbReadOnly value to set.- Returns:
- the MigrateSqlServerSqlDbDatabaseInput object itself.
-
tableMap
Get the tableMap property: Mapping of source to target tables.- Returns:
- the tableMap value.
-
withTableMap
Set the tableMap property: Mapping of source to target tables.- Parameters:
tableMap
- the tableMap value to set.- Returns:
- the MigrateSqlServerSqlDbDatabaseInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-