Class MigrateSqlServerSqlMISyncTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlServerSqlMISyncTaskInput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlMISyncTaskInput
Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrateSqlServerSqlMISyncTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withAzureApp(AzureActiveDirectoryApp azureApp) Set the azureApp property: Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account.withBackupFileShare(FileShare backupFileShare) Set the backupFileShare property: Backup file share information for all selected databases.withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source SQL Server.withStorageResourceId(String storageResourceId) Set the storageResourceId property: Fully qualified resourceId of storage.withTargetConnectionInfo(MiSqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for Azure SQL Database Managed Instance.Methods inherited from class com.azure.resourcemanager.datamigration.models.SqlServerSqlMISyncTaskInput
azureApp, backupFileShare, selectedDatabases, sourceConnectionInfo, storageResourceId, targetConnectionInfo
-
Constructor Details
-
MigrateSqlServerSqlMISyncTaskInput
public MigrateSqlServerSqlMISyncTaskInput()Creates an instance of MigrateSqlServerSqlMISyncTaskInput class.
-
-
Method Details
-
withSelectedDatabases
public MigrateSqlServerSqlMISyncTaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Overrides:
withSelectedDatabasesin classSqlServerSqlMISyncTaskInput- Parameters:
selectedDatabases- the selectedDatabases value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
withStorageResourceId
Set the storageResourceId property: Fully qualified resourceId of storage.- Overrides:
withStorageResourceIdin classSqlServerSqlMISyncTaskInput- Parameters:
storageResourceId- the storageResourceId value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
withSourceConnectionInfo
public MigrateSqlServerSqlMISyncTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source SQL Server.- Overrides:
withSourceConnectionInfoin classSqlServerSqlMISyncTaskInput- Parameters:
sourceConnectionInfo- the sourceConnectionInfo value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
withTargetConnectionInfo
public MigrateSqlServerSqlMISyncTaskInput withTargetConnectionInfo(MiSqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for Azure SQL Database Managed Instance.- Overrides:
withTargetConnectionInfoin classSqlServerSqlMISyncTaskInput- Parameters:
targetConnectionInfo- the targetConnectionInfo value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
withAzureApp
Set the azureApp property: Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account.- Overrides:
withAzureAppin classSqlServerSqlMISyncTaskInput- Parameters:
azureApp- the azureApp value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSqlServerSqlMISyncTaskInput- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-