Class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput

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

public final class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput extends Object
Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations.
  • Constructor Details

    • MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput

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

    • selectedDatabases

      Get the selectedDatabases property: Databases to migrate.
      Returns:
      the selectedDatabases value.
    • withSelectedDatabases

      Set the selectedDatabases property: Databases to migrate.
      Parameters:
      selectedDatabases - the selectedDatabases value to set.
      Returns:
      the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput object itself.
    • targetConnectionInfo

      public PostgreSqlConnectionInfo targetConnectionInfo()
      Get the targetConnectionInfo property: Connection information for target Azure Database for PostgreSQL.
      Returns:
      the targetConnectionInfo value.
    • withTargetConnectionInfo

      public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput withTargetConnectionInfo(PostgreSqlConnectionInfo targetConnectionInfo)
      Set the targetConnectionInfo property: Connection information for target Azure Database for PostgreSQL.
      Parameters:
      targetConnectionInfo - the targetConnectionInfo value to set.
      Returns:
      the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput object itself.
    • sourceConnectionInfo

      public PostgreSqlConnectionInfo sourceConnectionInfo()
      Get the sourceConnectionInfo property: Connection information for source PostgreSQL.
      Returns:
      the sourceConnectionInfo value.
    • withSourceConnectionInfo

      public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput withSourceConnectionInfo(PostgreSqlConnectionInfo sourceConnectionInfo)
      Set the sourceConnectionInfo property: Connection information for source PostgreSQL.
      Parameters:
      sourceConnectionInfo - the sourceConnectionInfo value to set.
      Returns:
      the MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput object itself.
    • validate

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