Class SqlServerSqlMISyncTaskInput

java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlServerSqlMISyncTaskInput
Direct Known Subclasses:
MigrateSqlServerSqlMISyncTaskInput, ValidateMigrationInputSqlServerSqlMISyncTaskInput

public class SqlServerSqlMISyncTaskInput extends Object
Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.
  • Constructor Details

    • SqlServerSqlMISyncTaskInput

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

    • selectedDatabases

      public List<MigrateSqlServerSqlMIDatabaseInput> 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.
    • backupFileShare

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

      public SqlServerSqlMISyncTaskInput withBackupFileShare(FileShare backupFileShare)
      Set the backupFileShare property: Backup file share information for all selected databases.
      Parameters:
      backupFileShare - the backupFileShare value to set.
      Returns:
      the SqlServerSqlMISyncTaskInput object itself.
    • storageResourceId

      public String storageResourceId()
      Get the storageResourceId property: Fully qualified resourceId of storage.
      Returns:
      the storageResourceId value.
    • withStorageResourceId

      public SqlServerSqlMISyncTaskInput withStorageResourceId(String storageResourceId)
      Set the storageResourceId property: Fully qualified resourceId of storage.
      Parameters:
      storageResourceId - the storageResourceId value to set.
      Returns:
      the SqlServerSqlMISyncTaskInput object itself.
    • sourceConnectionInfo

      public SqlConnectionInfo sourceConnectionInfo()
      Get the sourceConnectionInfo property: Connection information for source SQL Server.
      Returns:
      the sourceConnectionInfo value.
    • withSourceConnectionInfo

      public SqlServerSqlMISyncTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo)
      Set the sourceConnectionInfo property: Connection information for source SQL Server.
      Parameters:
      sourceConnectionInfo - the sourceConnectionInfo value to set.
      Returns:
      the SqlServerSqlMISyncTaskInput object itself.
    • targetConnectionInfo

      public MiSqlConnectionInfo 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

      public AzureActiveDirectoryApp 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

      public SqlServerSqlMISyncTaskInput 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.
      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.