Class MiSqlConnectionInfo
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
com.azure.resourcemanager.datamigration.models.MiSqlConnectionInfo
Properties required to create a connection to Azure SQL database Managed instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the managedInstanceResourceId property: Resource id for Azure SQL database Managed instance.void
validate()
Validates the instance.withManagedInstanceResourceId
(String managedInstanceResourceId) Set the managedInstanceResourceId property: Resource id for Azure SQL database Managed instance.withPassword
(String password) Set the password property: Password credential.withUsername
(String username) Set the username property: User name.Methods inherited from class com.azure.resourcemanager.datamigration.models.ConnectionInfo
password, username
-
Constructor Details
-
MiSqlConnectionInfo
public MiSqlConnectionInfo()Creates an instance of MiSqlConnectionInfo class.
-
-
Method Details
-
managedInstanceResourceId
Get the managedInstanceResourceId property: Resource id for Azure SQL database Managed instance.- Returns:
- the managedInstanceResourceId value.
-
withManagedInstanceResourceId
Set the managedInstanceResourceId property: Resource id for Azure SQL database Managed instance.- Parameters:
managedInstanceResourceId
- the managedInstanceResourceId value to set.- Returns:
- the MiSqlConnectionInfo 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.
-