Class MigrateSqlServerSqlMITaskInput

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

public final class MigrateSqlServerSqlMITaskInput extends SqlMigrationTaskInput
Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance.
  • Constructor Details

    • MigrateSqlServerSqlMITaskInput

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

    • selectedDatabases

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

      public MigrateSqlServerSqlMITaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases)
      Set the selectedDatabases property: Databases to migrate.
      Parameters:
      selectedDatabases - the selectedDatabases value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • selectedLogins

      public List<String> selectedLogins()
      Get the selectedLogins property: Logins to migrate.
      Returns:
      the selectedLogins value.
    • withSelectedLogins

      public MigrateSqlServerSqlMITaskInput withSelectedLogins(List<String> selectedLogins)
      Set the selectedLogins property: Logins to migrate.
      Parameters:
      selectedLogins - the selectedLogins value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • selectedAgentJobs

      public List<String> selectedAgentJobs()
      Get the selectedAgentJobs property: Agent Jobs to migrate.
      Returns:
      the selectedAgentJobs value.
    • withSelectedAgentJobs

      public MigrateSqlServerSqlMITaskInput withSelectedAgentJobs(List<String> selectedAgentJobs)
      Set the selectedAgentJobs property: Agent Jobs to migrate.
      Parameters:
      selectedAgentJobs - the selectedAgentJobs value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • backupFileShare

      public FileShare backupFileShare()
      Get the backupFileShare property: Backup file share information for all selected databases.
      Returns:
      the backupFileShare value.
    • withBackupFileShare

      public MigrateSqlServerSqlMITaskInput withBackupFileShare(FileShare backupFileShare)
      Set the backupFileShare property: Backup file share information for all selected databases.
      Parameters:
      backupFileShare - the backupFileShare value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • backupBlobShare

      public BlobShare backupBlobShare()
      Get the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.
      Returns:
      the backupBlobShare value.
    • withBackupBlobShare

      public MigrateSqlServerSqlMITaskInput withBackupBlobShare(BlobShare backupBlobShare)
      Set the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.
      Parameters:
      backupBlobShare - the backupBlobShare value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • backupMode

      public BackupMode backupMode()
      Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup. If using existing backups, backup file paths are required to be provided in selectedDatabases.
      Returns:
      the backupMode value.
    • withBackupMode

      public MigrateSqlServerSqlMITaskInput withBackupMode(BackupMode backupMode)
      Set the backupMode property: Backup Mode to specify whether to use existing backup or create new backup. If using existing backups, backup file paths are required to be provided in selectedDatabases.
      Parameters:
      backupMode - the backupMode value to set.
      Returns:
      the MigrateSqlServerSqlMITaskInput object itself.
    • withSourceConnectionInfo

      public MigrateSqlServerSqlMITaskInput 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 MigrateSqlServerSqlMITaskInput 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.