Class ConnectToTargetSqlMITaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToTargetSqlMITaskInput
Input for the task that validates connection to Azure SQL Database Managed Instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectToTargetSqlMITaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the targetConnectionInfo property: Connection information for target SQL Server.voidvalidate()Validates the instance.withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target SQL Server.
-
Constructor Details
-
ConnectToTargetSqlMITaskInput
public ConnectToTargetSqlMITaskInput()Creates an instance of ConnectToTargetSqlMITaskInput class.
-
-
Method Details
-
targetConnectionInfo
Get the targetConnectionInfo property: Connection information for target SQL Server.- Returns:
- the targetConnectionInfo value.
-
withTargetConnectionInfo
public ConnectToTargetSqlMITaskInput withTargetConnectionInfo(SqlConnectionInfo targetConnectionInfo) Set the targetConnectionInfo property: Connection information for target SQL Server.- Parameters:
targetConnectionInfo- the targetConnectionInfo value to set.- Returns:
- the ConnectToTargetSqlMITaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-