public static String getInstanceClassByTaskType(TaskTypeEnum taskType) {
        if (taskType == null) {
            return null;
        }
        switch (taskType) {
            case FILE:
                return FILE_INSTANCE;
            case KAFKA:
                return KAFKA_INSTANCE;
            case PULSAR:
                return PULSAR_INSTANCE;
            case POSTGRES:
                return POSTGRES_INSTANCE;
            case ORACLE:
                return ORACLE_INSTANCE;
            case SQLSERVER:
                return SQLSERVER_INSTANCE;
            case MONGODB:
                return MONGODB_INSTANCE;
            case REDIS:
                return REDIS_INSTANCE;
            case MQTT:
                return MQTT_INSTANCE;
            case COS:
                return COS_INSTANCE;
            case SQL:
                return SQL_INSTANCE;
            default:
                LOGGER.error("invalid task type {}", taskType);
                return null;
        }
    }
parse json string to configuration instance.

@return job configuration
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/conf/InstanceProfile.java