Class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput
Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectToTargetAzureDbForPostgreSqlSyncTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the sourceConnectionInfo property: Connection information for source PostgreSQL server.Get the targetConnectionInfo property: Connection information for target Azure Database for PostgreSQL server.void
validate()
Validates the instance.withSourceConnectionInfo
(PostgreSqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for source PostgreSQL server.withTargetConnectionInfo
(PostgreSqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target Azure Database for PostgreSQL server.
-
Constructor Details
-
ConnectToTargetAzureDbForPostgreSqlSyncTaskInput
public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput()Creates an instance of ConnectToTargetAzureDbForPostgreSqlSyncTaskInput class.
-
-
Method Details
-
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
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.
-