Class ConnectToSourceSqlServerTaskInput
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToSourceSqlServerTaskInput
Input for the task that validates connection to SQL Server and also validates source server requirements.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectToSourceSqlServerTaskInput class. -
Method Summary
Modifier and TypeMethodDescriptionGet the checkPermissionsGroup property: Permission group for validations.Get the collectAgentJobs property: Flag for whether to collect agent jobs from source server.Get the collectLogins property: Flag for whether to collect logins from source server.Get the sourceConnectionInfo property: Connection information for Source SQL Server.void
validate()
Validates the instance.withCheckPermissionsGroup
(ServerLevelPermissionsGroup checkPermissionsGroup) Set the checkPermissionsGroup property: Permission group for validations.withCollectAgentJobs
(Boolean collectAgentJobs) Set the collectAgentJobs property: Flag for whether to collect agent jobs from source server.withCollectLogins
(Boolean collectLogins) Set the collectLogins property: Flag for whether to collect logins from source server.withSourceConnectionInfo
(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for Source SQL Server.
-
Constructor Details
-
ConnectToSourceSqlServerTaskInput
public ConnectToSourceSqlServerTaskInput()Creates an instance of ConnectToSourceSqlServerTaskInput class.
-
-
Method Details
-
sourceConnectionInfo
Get the sourceConnectionInfo property: Connection information for Source SQL Server.- Returns:
- the sourceConnectionInfo value.
-
withSourceConnectionInfo
public ConnectToSourceSqlServerTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) Set the sourceConnectionInfo property: Connection information for Source SQL Server.- Parameters:
sourceConnectionInfo
- the sourceConnectionInfo value to set.- Returns:
- the ConnectToSourceSqlServerTaskInput object itself.
-
checkPermissionsGroup
Get the checkPermissionsGroup property: Permission group for validations.- Returns:
- the checkPermissionsGroup value.
-
withCheckPermissionsGroup
public ConnectToSourceSqlServerTaskInput withCheckPermissionsGroup(ServerLevelPermissionsGroup checkPermissionsGroup) Set the checkPermissionsGroup property: Permission group for validations.- Parameters:
checkPermissionsGroup
- the checkPermissionsGroup value to set.- Returns:
- the ConnectToSourceSqlServerTaskInput object itself.
-
collectLogins
Get the collectLogins property: Flag for whether to collect logins from source server.- Returns:
- the collectLogins value.
-
withCollectLogins
Set the collectLogins property: Flag for whether to collect logins from source server.- Parameters:
collectLogins
- the collectLogins value to set.- Returns:
- the ConnectToSourceSqlServerTaskInput object itself.
-
collectAgentJobs
Get the collectAgentJobs property: Flag for whether to collect agent jobs from source server.- Returns:
- the collectAgentJobs value.
-
withCollectAgentJobs
Set the collectAgentJobs property: Flag for whether to collect agent jobs from source server.- Parameters:
collectAgentJobs
- the collectAgentJobs value to set.- Returns:
- the ConnectToSourceSqlServerTaskInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-