Class MigrateSqlServerSqlDbTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbTaskInput
Input for the task that migrates on-prem SQL Server databases to Azure SQL Database.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrateSqlServerSqlDbTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the selectedDatabases property: Databases to migrate.voidvalidate()Validates the instance.Get the validationOptions property: Options for enabling various post migration validations.withSelectedDatabases(List<MigrateSqlServerSqlDbDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to source.withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Information for connecting to target.withValidationOptions(MigrationValidationOptions validationOptions) Set the validationOptions property: Options for enabling various post migration validations.Methods inherited from class com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
sourceConnectionInfo, targetConnectionInfo
-
Constructor Details
-
MigrateSqlServerSqlDbTaskInput
public MigrateSqlServerSqlDbTaskInput()Creates an instance of MigrateSqlServerSqlDbTaskInput class.
-
-
Method Details
-
selectedDatabases
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public MigrateSqlServerSqlDbTaskInput withSelectedDatabases(List<MigrateSqlServerSqlDbDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases- the selectedDatabases value to set.- Returns:
- the MigrateSqlServerSqlDbTaskInput object itself.
-
validationOptions
Get the validationOptions property: Options for enabling various post migration validations. Available options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target tables after the migration to ensure the correctness of the data. 2.) Schema Validation: Performs a thorough schema comparison between the source and target tables and provides a list of differences between the source and target database, 3.) Query Analysis: Executes a set of queries picked up automatically either from the Query Plan Cache or Query Store and execute them and compares the execution time between the source and target database.- Returns:
- the validationOptions value.
-
withValidationOptions
public MigrateSqlServerSqlDbTaskInput withValidationOptions(MigrationValidationOptions validationOptions) Set the validationOptions property: Options for enabling various post migration validations. Available options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target tables after the migration to ensure the correctness of the data. 2.) Schema Validation: Performs a thorough schema comparison between the source and target tables and provides a list of differences between the source and target database, 3.) Query Analysis: Executes a set of queries picked up automatically either from the Query Plan Cache or Query Store and execute them and compares the execution time between the source and target database.- Parameters:
validationOptions- the validationOptions value to set.- Returns:
- the MigrateSqlServerSqlDbTaskInput object itself.
-
withSourceConnectionInfo
public MigrateSqlServerSqlDbTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to source.- Overrides:
withSourceConnectionInfoin classSqlMigrationTaskInput- Parameters:
sourceConnectionInfo- the sourceConnectionInfo value to set.- Returns:
- the SqlMigrationTaskInput object itself.
-
withTargetConnectionInfo
public MigrateSqlServerSqlDbTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Information for connecting to target.- Overrides:
withTargetConnectionInfoin classSqlMigrationTaskInput- Parameters:
targetConnectionInfo- the targetConnectionInfo value to set.- Returns:
- the SqlMigrationTaskInput object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSqlMigrationTaskInput- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-