MigrateSqlServerSqlDbDatabaseInput Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. MigrateSqlServerSqlDbDatabaseInput
- com.
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 Migrate |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
makeSourceDbReadOnly()
Get the make |
String |
name()
Get the name property: Name of the database. |
Map<String,String> |
tableMap()
Get the table |
String |
targetDatabaseName()
Get the target |
void |
validate()
Validates the instance. |
Migrate |
withMakeSourceDbReadOnly(Boolean makeSourceDbReadOnly)
Set the make |
Migrate |
withName(String name)
Set the name property: Name of the database. |
Migrate |
withTableMap(Map<String,String> tableMap)
Set the table |
Migrate |
withTargetDatabaseName(String targetDatabaseName)
Set the target |
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:
name
public String name()
Get the name property: Name of the database.
Returns:
tableMap
public Map
Get the tableMap property: Mapping of source to target tables.
Returns:
targetDatabaseName
public String targetDatabaseName()
Get the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.
Returns:
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:
Returns:
withName
public MigrateSqlServerSqlDbDatabaseInput withName(String name)
Set the name property: Name of the database.
Parameters:
Returns:
withTableMap
public MigrateSqlServerSqlDbDatabaseInput withTableMap(Map
Set the tableMap property: Mapping of source to target tables.
Parameters:
Returns:
withTargetDatabaseName
public MigrateSqlServerSqlDbDatabaseInput withTargetDatabaseName(String targetDatabaseName)
Set the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for