Class ConnectToSourceSqlServerTaskInput

java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectToSourceSqlServerTaskInput

public final class ConnectToSourceSqlServerTaskInput extends Object
Input for the task that validates connection to SQL Server and also validates source server requirements.
  • Constructor Details

    • ConnectToSourceSqlServerTaskInput

      public ConnectToSourceSqlServerTaskInput()
      Creates an instance of ConnectToSourceSqlServerTaskInput class.
  • Method Details

    • sourceConnectionInfo

      public SqlConnectionInfo 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

      public ServerLevelPermissionsGroup 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

      public Boolean collectLogins()
      Get the collectLogins property: Flag for whether to collect logins from source server.
      Returns:
      the collectLogins value.
    • withCollectLogins

      public ConnectToSourceSqlServerTaskInput withCollectLogins(Boolean collectLogins)
      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

      public Boolean collectAgentJobs()
      Get the collectAgentJobs property: Flag for whether to collect agent jobs from source server.
      Returns:
      the collectAgentJobs value.
    • withCollectAgentJobs

      public ConnectToSourceSqlServerTaskInput withCollectAgentJobs(Boolean collectAgentJobs)
      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.