Class SqlServerSqlMISyncTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlServerSqlMISyncTaskInput
- Direct Known Subclasses:
MigrateSqlServerSqlMISyncTaskInput
,ValidateMigrationInputSqlServerSqlMISyncTaskInput
Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SqlServerSqlMISyncTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionazureApp()
Get 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.Get the backupFileShare property: Backup file share information for all selected databases.Get the selectedDatabases property: Databases to migrate.Get the sourceConnectionInfo property: Connection information for source SQL Server.Get the storageResourceId property: Fully qualified resourceId of storage.Get the targetConnectionInfo property: Connection information for Azure SQL Database Managed Instance.void
validate()
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.
-
Constructor Details
-
SqlServerSqlMISyncTaskInput
public SqlServerSqlMISyncTaskInput()Creates an instance of SqlServerSqlMISyncTaskInput class.
-
-
Method Details
-
selectedDatabases
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public SqlServerSqlMISyncTaskInput withSelectedDatabases(List<MigrateSqlServerSqlMIDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases
- the selectedDatabases value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
storageResourceId
Get the storageResourceId property: Fully qualified resourceId of storage.- Returns:
- the storageResourceId value.
-
withStorageResourceId
Set the storageResourceId property: Fully qualified resourceId of storage.- Parameters:
storageResourceId
- the storageResourceId value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Connection information for source SQL Server.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
Set the sourceConnectionInfo property: Connection information for source SQL Server.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
targetConnectionInfo
Get the targetConnectionInfo property: Connection information for Azure SQL Database Managed Instance.- Returns:
- the targetConnectionInfo value.
-
withTargetConnectionInfo
public SqlServerSqlMISyncTaskInput withTargetConnectionInfo(MiSqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for Azure SQL Database Managed Instance.- Parameters:
targetConnectionInfo
- the targetConnectionInfo value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
azureApp
Get 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.- Returns:
- the azureApp value.
-
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.- Parameters:
azureApp
- the azureApp value to set.- Returns:
- the SqlServerSqlMISyncTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-