Class PostgreSqlConnectionInfo
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
com.azure.resourcemanager.datamigration.models.PostgreSqlConnectionInfo
Information for connecting to PostgreSQL server.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PostgreSqlConnectionInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: Name of the database.intport()Get the port property: Port for Server.Get the serverName property: Name of the server.voidvalidate()Validates the instance.withDatabaseName(String databaseName) Set the databaseName property: Name of the database.withPassword(String password) Set the password property: Password credential.withPort(int port) Set the port property: Port for Server.withServerName(String serverName) Set the serverName property: Name of the server.withUsername(String username) Set the username property: User name.Methods inherited from class com.azure.resourcemanager.datamigration.models.ConnectionInfo
password, username
-
Constructor Details
-
PostgreSqlConnectionInfo
public PostgreSqlConnectionInfo()Creates an instance of PostgreSqlConnectionInfo class.
-
-
Method Details
-
serverName
Get the serverName property: Name of the server.- Returns:
- the serverName value.
-
withServerName
Set the serverName property: Name of the server.- Parameters:
serverName- the serverName value to set.- Returns:
- the PostgreSqlConnectionInfo object itself.
-
databaseName
Get the databaseName property: Name of the database.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Name of the database.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the PostgreSqlConnectionInfo object itself.
-
port
public int port()Get the port property: Port for Server.- Returns:
- the port value.
-
withPort
Set the port property: Port for Server.- Parameters:
port- the port value to set.- Returns:
- the PostgreSqlConnectionInfo object itself.
-
withUsername
Set the username property: User name.- Overrides:
withUsernamein classConnectionInfo- Parameters:
username- the username value to set.- Returns:
- the ConnectionInfo object itself.
-
withPassword
Set the password property: Password credential.- Overrides:
withPasswordin classConnectionInfo- Parameters:
password- the password value to set.- Returns:
- the ConnectionInfo object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classConnectionInfo- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-