Class ValidateSyncMigrationInputSqlServerTaskInput

java.lang.Object
com.azure.resourcemanager.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput

public final class ValidateSyncMigrationInputSqlServerTaskInput extends Object
Input for task that validates migration input for SQL sync migrations.
  • Constructor Details

    • ValidateSyncMigrationInputSqlServerTaskInput

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

    • sourceConnectionInfo

      public SqlConnectionInfo sourceConnectionInfo()
      Get the sourceConnectionInfo property: Information for connecting to source SQL server.
      Returns:
      the sourceConnectionInfo value.
    • withSourceConnectionInfo

      public ValidateSyncMigrationInputSqlServerTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)
      Set the sourceConnectionInfo property: Information for connecting to source SQL server.
      Parameters:
      sourceConnectionInfo - the sourceConnectionInfo value to set.
      Returns:
      the ValidateSyncMigrationInputSqlServerTaskInput object itself.
    • targetConnectionInfo

      public SqlConnectionInfo targetConnectionInfo()
      Get the targetConnectionInfo property: Information for connecting to target.
      Returns:
      the targetConnectionInfo value.
    • withTargetConnectionInfo

      public ValidateSyncMigrationInputSqlServerTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo)
      Set the targetConnectionInfo property: Information for connecting to target.
      Parameters:
      targetConnectionInfo - the targetConnectionInfo value to set.
      Returns:
      the ValidateSyncMigrationInputSqlServerTaskInput object itself.
    • selectedDatabases

      public List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases()
      Get the selectedDatabases property: Databases to migrate.
      Returns:
      the selectedDatabases value.
    • withSelectedDatabases

      Set the selectedDatabases property: Databases to migrate.
      Parameters:
      selectedDatabases - the selectedDatabases value to set.
      Returns:
      the ValidateSyncMigrationInputSqlServerTaskInput object itself.
    • validate

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