Class ConnectionInfo

java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
Direct Known Subclasses:
MiSqlConnectionInfo, MySqlConnectionInfo, PostgreSqlConnectionInfo, SqlConnectionInfo

public class ConnectionInfo extends Object
Defines the connection properties of a server.
  • Constructor Details

    • ConnectionInfo

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

    • username

      public String username()
      Get the username property: User name.
      Returns:
      the username value.
    • withUsername

      public ConnectionInfo withUsername(String username)
      Set the username property: User name.
      Parameters:
      username - the username value to set.
      Returns:
      the ConnectionInfo object itself.
    • password

      public String password()
      Get the password property: Password credential.
      Returns:
      the password value.
    • withPassword

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

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