Class MySqlConnectionInfo

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

public final class MySqlConnectionInfo extends ConnectionInfo
Information for connecting to MySQL server.
  • Constructor Details

    • MySqlConnectionInfo

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

    • serverName

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

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

      public int port()
      Get the port property: Port for Server.
      Returns:
      the port value.
    • withPort

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

      public MySqlConnectionInfo 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 MySqlConnectionInfo 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.