Class PostgreSqlConnectionInfo

java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
com.azure.resourcemanager.datamigration.models.PostgreSqlConnectionInfo

public final class PostgreSqlConnectionInfo extends ConnectionInfo
Information for connecting to PostgreSQL server.
  • Constructor Details

    • PostgreSqlConnectionInfo

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

    • serverName

      public String serverName()
      Get the serverName property: Name of the server.
      Returns:
      the serverName value.
    • withServerName

      public PostgreSqlConnectionInfo withServerName(String serverName)
      Set the serverName property: Name of the server.
      Parameters:
      serverName - the serverName value to set.
      Returns:
      the PostgreSqlConnectionInfo object itself.
    • databaseName

      public String databaseName()
      Get the databaseName property: Name of the database.
      Returns:
      the databaseName value.
    • withDatabaseName

      public PostgreSqlConnectionInfo withDatabaseName(String databaseName)
      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

      public PostgreSqlConnectionInfo withPort(int port)
      Set the port property: Port for Server.
      Parameters:
      port - the port value to set.
      Returns:
      the PostgreSqlConnectionInfo object itself.
    • withUsername

      public PostgreSqlConnectionInfo withUsername(String username)
      Set the username property: User name.
      Overrides:
      withUsername in class ConnectionInfo
      Parameters:
      username - the username value to set.
      Returns:
      the ConnectionInfo object itself.
    • withPassword

      public PostgreSqlConnectionInfo withPassword(String password)
      Set the password property: Password credential.
      Overrides:
      withPassword in class ConnectionInfo
      Parameters:
      password - the password value to set.
      Returns:
      the ConnectionInfo object itself.
    • validate

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