Class ValidateSyncMigrationInputSqlServerTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput
Input for task that validates migration input for SQL sync migrations.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ValidateSyncMigrationInputSqlServerTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the selectedDatabases property: Databases to migrate.Get the sourceConnectionInfo property: Information for connecting to source SQL server.Get the targetConnectionInfo property: Information for connecting to target.void
validate()
Validates the instance.withSelectedDatabases
(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.withSourceConnectionInfo
(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to source SQL server.withTargetConnectionInfo
(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Information for connecting to target.
-
Constructor Details
-
ValidateSyncMigrationInputSqlServerTaskInput
public ValidateSyncMigrationInputSqlServerTaskInput()Creates an instance of ValidateSyncMigrationInputSqlServerTaskInput class.
-
-
Method Details
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Information for connecting to source SQL server.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
public ValidateSyncMigrationInputSqlServerTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Information for connecting to source SQL server.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the ValidateSyncMigrationInputSqlServerTaskInput object itself.
-
targetConnectionInfo
Get the targetConnectionInfo property: Information for connecting to target.- Returns:
- the targetConnectionInfo value.
-
withTargetConnectionInfo
public ValidateSyncMigrationInputSqlServerTaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Information for connecting to target.- Parameters:
targetConnectionInfo
- the targetConnectionInfo value to set.- Returns:
- the ValidateSyncMigrationInputSqlServerTaskInput object itself.
-
selectedDatabases
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public ValidateSyncMigrationInputSqlServerTaskInput withSelectedDatabases(List<MigrateSqlServerSqlDbSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases
- the selectedDatabases value to set.- Returns:
- the ValidateSyncMigrationInputSqlServerTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-