Class MigrateSqlServerSqlDbDatabaseInput

java.lang.Object
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbDatabaseInput

public final class MigrateSqlServerSqlDbDatabaseInput extends Object
Database specific information for SQL to Azure SQL DB migration task inputs.
  • Constructor Details

    • MigrateSqlServerSqlDbDatabaseInput

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

    • name

      public String name()
      Get the name property: Name of the database.
      Returns:
      the name value.
    • withName

      Set the name property: Name of the database.
      Parameters:
      name - the name value to set.
      Returns:
      the MigrateSqlServerSqlDbDatabaseInput object itself.
    • targetDatabaseName

      public String targetDatabaseName()
      Get the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.
      Returns:
      the targetDatabaseName value.
    • withTargetDatabaseName

      public MigrateSqlServerSqlDbDatabaseInput withTargetDatabaseName(String targetDatabaseName)
      Set the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.
      Parameters:
      targetDatabaseName - the targetDatabaseName value to set.
      Returns:
      the MigrateSqlServerSqlDbDatabaseInput object itself.
    • makeSourceDbReadOnly

      public Boolean makeSourceDbReadOnly()
      Get the makeSourceDbReadOnly property: Whether to set database read only before migration.
      Returns:
      the makeSourceDbReadOnly value.
    • withMakeSourceDbReadOnly

      public MigrateSqlServerSqlDbDatabaseInput withMakeSourceDbReadOnly(Boolean makeSourceDbReadOnly)
      Set the makeSourceDbReadOnly property: Whether to set database read only before migration.
      Parameters:
      makeSourceDbReadOnly - the makeSourceDbReadOnly value to set.
      Returns:
      the MigrateSqlServerSqlDbDatabaseInput object itself.
    • tableMap

      public Map<String,String> tableMap()
      Get the tableMap property: Mapping of source to target tables.
      Returns:
      the tableMap value.
    • withTableMap

      public MigrateSqlServerSqlDbDatabaseInput withTableMap(Map<String,String> tableMap)
      Set the tableMap property: Mapping of source to target tables.
      Parameters:
      tableMap - the tableMap value to set.
      Returns:
      the MigrateSqlServerSqlDbDatabaseInput object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.