Class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput

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

public final class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput extends Object
Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements.
  • Constructor Details

    • ConnectToTargetAzureDbForPostgreSqlSyncTaskInput

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

    • sourceConnectionInfo

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

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

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

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

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