Class MigrateMySqlAzureDbForMySqlSyncTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput
Input for the task that migrates MySQL databases to Azure Database for MySQL for online migrations.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MigrateMySqlAzureDbForMySqlSyncTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the selectedDatabases property: Databases to migrate.Get the sourceConnectionInfo property: Connection information for source MySQL.Get the targetConnectionInfo property: Connection information for target Azure Database for MySQL.void
validate()
Validates the instance.withSelectedDatabases
(List<MigrateMySqlAzureDbForMySqlSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.withSourceConnectionInfo
(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source MySQL.withTargetConnectionInfo
(MySqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target Azure Database for MySQL.
-
Constructor Details
-
MigrateMySqlAzureDbForMySqlSyncTaskInput
public MigrateMySqlAzureDbForMySqlSyncTaskInput()Creates an instance of MigrateMySqlAzureDbForMySqlSyncTaskInput class.
-
-
Method Details
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Connection information for source MySQL.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
public MigrateMySqlAzureDbForMySqlSyncTaskInput withSourceConnectionInfo(MySqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source MySQL.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncTaskInput object itself.
-
targetConnectionInfo
Get the targetConnectionInfo property: Connection information for target Azure Database for MySQL.- Returns:
- the targetConnectionInfo value.
-
withTargetConnectionInfo
public MigrateMySqlAzureDbForMySqlSyncTaskInput withTargetConnectionInfo(MySqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target Azure Database for MySQL.- Parameters:
targetConnectionInfo
- the targetConnectionInfo value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncTaskInput object itself.
-
selectedDatabases
Get the selectedDatabases property: Databases to migrate.- Returns:
- the selectedDatabases value.
-
withSelectedDatabases
public MigrateMySqlAzureDbForMySqlSyncTaskInput withSelectedDatabases(List<MigrateMySqlAzureDbForMySqlSyncDatabaseInput> selectedDatabases) Set the selectedDatabases property: Databases to migrate.- Parameters:
selectedDatabases
- the selectedDatabases value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-