Class ConnectToTargetAzureDbForMySqlTaskInput

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

public final class ConnectToTargetAzureDbForMySqlTaskInput extends Object
Input for the task that validates connection to Azure Database for MySQL and target server requirements.
  • Constructor Details

    • ConnectToTargetAzureDbForMySqlTaskInput

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

    • sourceConnectionInfo

      public MySqlConnectionInfo sourceConnectionInfo()
      Get the sourceConnectionInfo property: Connection information for source MySQL server.
      Returns:
      the sourceConnectionInfo value.
    • withSourceConnectionInfo

      public ConnectToTargetAzureDbForMySqlTaskInput withSourceConnectionInfo(MySqlConnectionInfo sourceConnectionInfo)
      Set the sourceConnectionInfo property: Connection information for source MySQL server.
      Parameters:
      sourceConnectionInfo - the sourceConnectionInfo value to set.
      Returns:
      the ConnectToTargetAzureDbForMySqlTaskInput object itself.
    • targetConnectionInfo

      public MySqlConnectionInfo targetConnectionInfo()
      Get the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.
      Returns:
      the targetConnectionInfo value.
    • withTargetConnectionInfo

      public ConnectToTargetAzureDbForMySqlTaskInput withTargetConnectionInfo(MySqlConnectionInfo targetConnectionInfo)
      Set the targetConnectionInfo property: Connection information for target Azure Database for MySQL server.
      Parameters:
      targetConnectionInfo - the targetConnectionInfo value to set.
      Returns:
      the ConnectToTargetAzureDbForMySqlTaskInput object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.