Class MigrateSqlServerSqlDbSyncTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
com.azure.resourcemanager.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput
Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrateSqlServerSqlDbSyncTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the selectedDatabases property: Databases to migrate.voidvalidate()Validates the instance.Get the validationOptions property: Validation options.withSelectedDatabases(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases 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.withValidationOptions(MigrationValidationOptions validationOptions) Set the validationOptions property: Validation options.Methods inherited from class com.azure.resourcemanager.datamigration.models.SqlMigrationTaskInput
sourceConnectionInfo, targetConnectionInfo
-
Constructor Details
-
MigrateSqlServerSqlDbSyncTaskInput
public MigrateSqlServerSqlDbSyncTaskInput()Creates an instance of MigrateSqlServerSqlDbSyncTaskInput class.
-
-
Method Details
-
selectedDatabases
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public MigrateSqlServerSqlDbSyncTaskInput withSelectedDatabases(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases- the selectedDatabases value to set.- Returns:
- the MigrateSqlServerSqlDbSyncTaskInput object itself.
-
validationOptions
Get the validationOptions property: Validation options.- Returns:
- the validationOptions value.
-
withValidationOptions
public MigrateSqlServerSqlDbSyncTaskInput withValidationOptions(MigrationValidationOptions validationOptions) Set the validationOptions property: Validation options.- Parameters:
validationOptions- the validationOptions value to set.- Returns:
- the MigrateSqlServerSqlDbSyncTaskInput object itself.
-
withSourceConnectionInfo
public MigrateSqlServerSqlDbSyncTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to source.- Overrides:
withSourceConnectionInfoin classSqlMigrationTaskInput- Parameters:
sourceConnectionInfo- the sourceConnectionInfo value to set.- Returns:
- the SqlMigrationTaskInput object itself.
-
withTargetConnectionInfo
public MigrateSqlServerSqlDbSyncTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Information for connecting to target.- Overrides:
withTargetConnectionInfoin classSqlMigrationTaskInput- Parameters:
targetConnectionInfo- the targetConnectionInfo value to set.- Returns:
- the SqlMigrationTaskInput object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSqlMigrationTaskInput- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-