Class MigrateSqlServerSqlMITaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlMITaskInput
Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MigrateSqlServerSqlMITaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.Get the backupFileShare property: Backup file share information for all selected databases.Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.Get the selectedAgentJobs property: Agent Jobs to migrate.Get the selectedDatabases property: Databases to migrate.Get the selectedLogins property: Logins to migrate.void
validate()
Validates the instance.withBackupBlobShare
(BlobShare backupBlobShare) Set the backupBlobShare property: SAS URI of Azure Storage Account Container to be used for storing backup files.withBackupFileShare
(FileShare backupFileShare) Set the backupFileShare property: Backup file share information for all selected databases.withBackupMode
(BackupMode backupMode) Set the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.withSelectedAgentJobs
(List<String> selectedAgentJobs) Set the selectedAgentJobs property: Agent Jobs to migrate.withSelectedDatabases
(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.withSelectedLogins
(List<String> selectedLogins) Set the selectedLogins property: Logins 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.Methods inherited from class com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
sourceConnectionInfo, targetConnectionInfo
-
Constructor Details
-
MigrateSqlServerSqlMITaskInput
public MigrateSqlServerSqlMITaskInput()Creates an instance of MigrateSqlServerSqlMITaskInput class.
-
-
Method Details
-
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
Get the selectedLogins property: Logins to migrate.- Returns:
- the selectedLogins value.
-
withSelectedLogins
Set the selectedLogins property: Logins to migrate.- Parameters:
selectedLogins
- the selectedLogins value to set.- Returns:
- the MigrateSqlServerSqlMITaskInput object itself.
-
selectedAgentJobs
Get the selectedAgentJobs property: Agent Jobs to migrate.- Returns:
- the selectedAgentJobs value.
-
withSelectedAgentJobs
Set the selectedAgentJobs property: Agent Jobs to migrate.- Parameters:
selectedAgentJobs
- the selectedAgentJobs value to set.- Returns:
- the MigrateSqlServerSqlMITaskInput object itself.
-
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
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 classSqlMigrationTaskInput
- 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 classSqlMigrationTaskInput
- Parameters:
targetConnectionInfo
- the targetConnectionInfo value to set.- Returns:
- the SqlMigrationTaskInput object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classSqlMigrationTaskInput
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-