Class ConnectionInfo
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
- Direct Known Subclasses:
MiSqlConnectionInfo
,MySqlConnectionInfo
,PostgreSqlConnectionInfo
,SqlConnectionInfo
Defines the connection properties of a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get the password property: Password credential.username()
Get the username property: User name.void
validate()
Validates the instance.withPassword
(String password) Set the password property: Password credential.withUsername
(String username) Set the username property: User name.
-
Constructor Details
-
ConnectionInfo
public ConnectionInfo()Creates an instance of ConnectionInfo class.
-
-
Method Details
-
username
Get the username property: User name.- Returns:
- the username value.
-
withUsername
Set the username property: User name.- Parameters:
username
- the username value to set.- Returns:
- the ConnectionInfo object itself.
-
password
Get the password property: Password credential.- Returns:
- the password value.
-
withPassword
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.
-