Class MigrateSqlServerSqlDbTaskInput

java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbTaskInput

public final class MigrateSqlServerSqlDbTaskInput extends SqlMigrationTaskInput
Input for the task that migrates on-prem SQL Server databases to Azure SQL Database.
  • Constructor Details

    • MigrateSqlServerSqlDbTaskInput

      public MigrateSqlServerSqlDbTaskInput()
      Creates an instance of MigrateSqlServerSqlDbTaskInput class.
  • Method Details

    • selectedDatabases

      public List<MigrateSqlServerSqlDbDatabaseInput> 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

      public MigrationValidationOptions 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:
      withSourceConnectionInfo in class SqlMigrationTaskInput
      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:
      withTargetConnectionInfo in class SqlMigrationTaskInput
      Parameters:
      targetConnectionInfo - the targetConnectionInfo value to set.
      Returns:
      the SqlMigrationTaskInput object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SqlMigrationTaskInput
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.