Class ValidateMigrationInputSqlServerSqlMITaskInput

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

public final class ValidateMigrationInputSqlServerSqlMITaskInput extends Object
Input for task that validates migration input for SQL to Azure SQL Managed Instance.
  • Constructor Details

    • ValidateMigrationInputSqlServerSqlMITaskInput

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

    • sourceConnectionInfo

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

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

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

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

      public List<MigrateSqlServerSqlMIDatabaseInput> 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 ValidateMigrationInputSqlServerSqlMITaskInput object itself.
    • selectedLogins

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

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

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

      public ValidateMigrationInputSqlServerSqlMITaskInput withBackupFileShare(FileShare backupFileShare)
      Set the backupFileShare property: Backup file share information for all selected databases.
      Parameters:
      backupFileShare - the backupFileShare value to set.
      Returns:
      the ValidateMigrationInputSqlServerSqlMITaskInput 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 ValidateMigrationInputSqlServerSqlMITaskInput 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 ValidateMigrationInputSqlServerSqlMITaskInput object itself.
    • backupMode

      public BackupMode backupMode()
      Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.
      Returns:
      the backupMode value.
    • withBackupMode

      public ValidateMigrationInputSqlServerSqlMITaskInput withBackupMode(BackupMode backupMode)
      Set the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.
      Parameters:
      backupMode - the backupMode value to set.
      Returns:
      the ValidateMigrationInputSqlServerSqlMITaskInput object itself.
    • validate

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