Class MySqlConnectionInfo
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
com.azure.resourcemanager.datamigration.models.MySqlConnectionInfo
Information for connecting to MySQL server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
port()
Get the port property: Port for Server.Get the serverName property: Name of the server.void
validate()
Validates the instance.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
-
MySqlConnectionInfo
public MySqlConnectionInfo()Creates an instance of MySqlConnectionInfo 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 MySqlConnectionInfo 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 MySqlConnectionInfo object itself.
-
withUsername
Set the username property: User name.- Overrides:
withUsername
in classConnectionInfo
- Parameters:
username
- the username value to set.- Returns:
- the ConnectionInfo object itself.
-
withPassword
Set the password property: Password credential.- Overrides:
withPassword
in classConnectionInfo
- Parameters:
password
- the password value to set.- Returns:
- the ConnectionInfo object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classConnectionInfo
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-