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