Class ValidateMigrationInputSqlServerSqlMITaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput
Input for task that validates migration input for SQL to Azure SQL Managed Instance.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ValidateMigrationInputSqlServerSqlMITaskInput 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 selectedDatabases property: Databases to migrate.Get the selectedLogins property: Logins to migrate.Get the sourceConnectionInfo property: Information for connecting to source.Get the targetConnectionInfo property: Information for connecting to target.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.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.
-
Constructor Details
-
ValidateMigrationInputSqlServerSqlMITaskInput
public ValidateMigrationInputSqlServerSqlMITaskInput()Creates an instance of ValidateMigrationInputSqlServerSqlMITaskInput class.
-
-
Method Details
-
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
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
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public ValidateMigrationInputSqlServerSqlMITaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases
- the selectedDatabases value to set.- Returns:
- the ValidateMigrationInputSqlServerSqlMITaskInput object itself.
-
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.
-
backupMode
Get the backupMode property: Backup Mode to specify whether to use existing backup or create new backup.- Returns:
- the backupMode value.
-
withBackupMode
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.
-