Class MigrateMySqlAzureDbForMySqlSyncDatabaseInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput
Database specific information for MySQL to Azure Database for MySQL migration task inputs.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MigrateMySqlAzureDbForMySqlSyncDatabaseInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the migrationSetting property: Migration settings which tune the migration behavior.name()
Get the name property: Name of the database.Get the sourceSetting property: Source settings to tune source endpoint migration behavior.Get the targetDatabaseName property: Name of target database.Get the targetSetting property: Target settings to tune target endpoint migration behavior.void
validate()
Validates the instance.withMigrationSetting
(Map<String, String> migrationSetting) Set the migrationSetting property: Migration settings which tune the migration behavior.Set the name property: Name of the database.withSourceSetting
(Map<String, String> sourceSetting) Set the sourceSetting property: Source settings to tune source endpoint migration behavior.withTargetDatabaseName
(String targetDatabaseName) Set the targetDatabaseName property: Name of target database.withTargetSetting
(Map<String, String> targetSetting) Set the targetSetting property: Target settings to tune target endpoint migration behavior.
-
Constructor Details
-
MigrateMySqlAzureDbForMySqlSyncDatabaseInput
public MigrateMySqlAzureDbForMySqlSyncDatabaseInput()Creates an instance of MigrateMySqlAzureDbForMySqlSyncDatabaseInput class.
-
-
Method Details
-
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 MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
-
targetDatabaseName
Get the targetDatabaseName property: Name of target database. Note: Target database will be truncated before starting migration.- Returns:
- the targetDatabaseName value.
-
withTargetDatabaseName
public MigrateMySqlAzureDbForMySqlSyncDatabaseInput 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 MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
-
migrationSetting
Get the migrationSetting property: Migration settings which tune the migration behavior.- Returns:
- the migrationSetting value.
-
withMigrationSetting
public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withMigrationSetting(Map<String, String> migrationSetting) Set the migrationSetting property: Migration settings which tune the migration behavior.- Parameters:
migrationSetting
- the migrationSetting value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
-
sourceSetting
Get the sourceSetting property: Source settings to tune source endpoint migration behavior.- Returns:
- the sourceSetting value.
-
withSourceSetting
public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withSourceSetting(Map<String, String> sourceSetting) Set the sourceSetting property: Source settings to tune source endpoint migration behavior.- Parameters:
sourceSetting
- the sourceSetting value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
-
targetSetting
Get the targetSetting property: Target settings to tune target endpoint migration behavior.- Returns:
- the targetSetting value.
-
withTargetSetting
public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withTargetSetting(Map<String, String> targetSetting) Set the targetSetting property: Target settings to tune target endpoint migration behavior.- Parameters:
targetSetting
- the targetSetting value to set.- Returns:
- the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-